Modify hash_create() to elog(ERROR) if an error occurs, rather than
Neil Conway <neilc@samurai.com>
Modify hash_create() to elog(ERROR) if an error occurs, rather than returning a NULL pointer (some callers remembered to check the return value, but some did not -- it is safer to just bail out). Also, cleanup pgstat.c to use elog(ERROR) rather than elog(LOG) followed by exit().
Files
| Path | Change | +/− |
|---|---|---|
| contrib/dblink/dblink.c | modified | +1 −9 |
| src/backend/commands/prepare.c | modified | +1 −4 |
| src/backend/executor/execGrouping.c | modified | +1 −5 |
| src/backend/executor/nodeIndexscan.c | modified | +1 −5 |
| src/backend/postmaster/pgstat.c | modified | +33 −131 |
| src/backend/storage/lmgr/lock.c | modified | +1 −4 |
| src/backend/storage/smgr/md.c | modified | +1 −5 |
| src/backend/utils/fmgr/fmgr.c | modified | +1 −5 |
| src/backend/utils/hash/dynahash.c | modified | +8 −6 |