git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 5f70a04) | patch
Modify ShmemInitStruct and ShmemInitHash to throw errors internally,
2010年4月28日 16:54:16 +0000 (16:54 +0000)
2010年4月28日 16:54:16 +0000 (16:54 +0000)
commit 77acab75dfe2e4741c25c0cf550266caef1eebd2
Modify ShmemInitStruct and ShmemInitHash to throw errors internally,
rather than returning NULL for some-but-not-all failures as they used to.
Remove now-redundant tests for NULL from call sites.

We had to do something about this because many call sites were failing to
check for NULL; and changing it like this seems a lot more useful and
mistake-proof than adding checks to the call sites without them.
12 files changed:
contrib/pg_stat_statements/pg_stat_statements.c diff | blob | blame | history
doc/src/sgml/xfunc.sgml diff | blob | blame | history
src/backend/access/transam/slru.c diff | blob | blame | history
src/backend/commands/async.c diff | blob | blame | history
src/backend/postmaster/autovacuum.c diff | blob | blame | history
src/backend/postmaster/bgwriter.c diff | blob | blame | history
src/backend/replication/walreceiverfuncs.c diff | blob | blame | history
src/backend/replication/walsender.c diff | blob | blame | history
src/backend/storage/buffer/buf_table.c diff | blob | blame | history
src/backend/storage/ipc/shmem.c diff | blob | blame | history
src/backend/storage/lmgr/lock.c diff | blob | blame | history
src/backend/storage/lmgr/proc.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /