]> granicus.if.org Git - postgresql/commit
Modify heap_open()/heap_openr() API per pghackers discussion of 11 July.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Aug 2000 19:19:38 +0000 (19:19 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Aug 2000 19:19:38 +0000 (19:19 +0000)
commit61aca818c486dbe000ce94c77cb1dd1f379baf67
tree6d266f3253db8cb2ea9d59bb63dff89f8f7a1c56
parentc298d74d4957845bb03a67092c30b53e5e0d01c2
Modify heap_open()/heap_openr() API per pghackers discussion of 11 July.
These two routines will now ALWAYS elog() on failure, whether you ask for
a lock or not.  If you really want to get a NULL return on failure, call
the new routines heap_open_nofail()/heap_openr_nofail().  By my count there
are only about three places that actually want that behavior.  There were
rather more than three places that were missing the check they needed to
make under the old convention :-(.
src/backend/access/heap/heapam.c
src/backend/access/transam/transam.c
src/backend/bootstrap/bootstrap.c
src/backend/catalog/heap.c
src/backend/commands/command.c
src/backend/commands/trigger.c
src/backend/executor/execAmi.c
src/backend/executor/nodeTidscan.c
src/backend/parser/parse_func.c
src/include/access/heapam.h