aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeIndexscan.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2004-10-25 00:46:43 +0000
committerNeil Conway <neilc@samurai.com>2004-10-25 00:46:43 +0000
commit8ec05b28b712fa4b2de5cc088ee978e05cd7e69a (patch)
tree3220f2edfd254450493b1977d8a1f374f93f70d4 /src/backend/executor/nodeIndexscan.c
parent346aff04be3311cefc0570022f86d43622d85f5e (diff)
downloadpostgresql-8ec05b28b712fa4b2de5cc088ee978e05cd7e69a.tar.gz
postgresql-8ec05b28b712fa4b2de5cc088ee978e05cd7e69a.zip
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().
Diffstat (limited to 'src/backend/executor/nodeIndexscan.c')
-rw-r--r--src/backend/executor/nodeIndexscan.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/backend/executor/nodeIndexscan.c b/src/backend/executor/nodeIndexscan.c
index 2ff0121baff..0d7dbfbe350 100644
--- a/src/backend/executor/nodeIndexscan.c
+++ b/src/backend/executor/nodeIndexscan.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/executor/nodeIndexscan.c,v 1.97 2004/08/29 05:06:42 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/executor/nodeIndexscan.c,v 1.98 2004/10/25 00:46:40 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1045,10 +1045,6 @@ create_duphash(IndexScanState *node)
nbuckets,
&hash_ctl,
HASH_ELEM | HASH_FUNCTION | HASH_CONTEXT);
- if (node->iss_DupHash == NULL)
- ereport(ERROR,
- (errcode(ERRCODE_OUT_OF_MEMORY),
- errmsg("out of memory")));
}
int