postgresql/src/backend/access
Tom Lane e92a88272e Modify hash_search() API to prevent future occurrences of the error
spotted by Qingqing Zhou.  The HASH_ENTER action now automatically
fails with elog(ERROR) on out-of-memory --- which incidentally lets
us eliminate duplicate error checks in quite a bunch of places.  If
you really need the old return-NULL-on-out-of-memory behavior, you
can ask for HASH_ENTER_NULL.  But there is now an Assert in that path
checking that you aren't hoping to get that behavior in a palloc-based
hash table.
Along the way, remove the old HASH_FIND_SAVE/HASH_REMOVE_SAVED actions,
which were not being used anywhere anymore, and were surely too ugly
and unsafe to want to see revived again.
2005-05-29 04:23:07 +00:00
..
common Change CREATE TYPE to require datatype output and send functions to have 2005-05-01 18:56:19 +00:00
gist Cleanup GiST header files. Since GiST extensions are often written as 2005-05-17 03:34:18 +00:00
hash Add parentheses to macros when args are used in computations. Without 2005-05-25 21:40:43 +00:00
heap Split the shared-memory array of PGPROC pointers out of the sinval 2005-05-19 21:35:48 +00:00
index Arrange to cache fmgr lookup information for an index's access method 2005-05-27 23:31:21 +00:00
nbtree This patch refactors away some duplicated code in the index AM build 2005-05-11 06:24:55 +00:00
rtree This patch refactors away some duplicated code in the index AM build 2005-05-11 06:24:55 +00:00
transam Modify hash_search() API to prevent future occurrences of the error 2005-05-29 04:23:07 +00:00
Makefile $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00