OSDN Git Service

Allow callers to pass a missing_ok flag when opening a relation.
authorRobert Haas <rhaas@postgresql.org>
Mon, 27 Jun 2011 19:06:32 +0000 (15:06 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 27 Jun 2011 19:25:44 +0000 (15:25 -0400)
commit9abbed0629c862710bdc0f0dd3565e069ecab9da
treedc1aa4dc7b0708abab6a2408ff05ba2c4cee45ea
parente16954f3d27fa8e16c379ff6623ae18d6250a39c
Allow callers to pass a missing_ok flag when opening a relation.

Since the names try_relation_openrv() and try_heap_openrv() don't seem
quite appropriate, rename the functions to relation_openrv_extended()
and heap_openrv_extended().  This is also more general, if we have a
future need for additional parameters that are of interest to only a
few callers.

This is infrastructure for a forthcoming patch to allow
get_object_address() to take a missing_ok argument as well.

Patch by me, review by Noah Misch.
src/backend/access/heap/heapam.c
src/backend/parser/parse_relation.c
src/include/access/heapam.h
src/pl/tcl/pltcl.c