Allow callers to pass a missing_ok flag when opening a relation.
Robert Haas <rhaas@postgresql.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam.c | modified | +14 −10 |
| src/backend/parser/parse_relation.c | modified | +1 −1 |
| src/include/access/heapam.h | modified | +4 −2 |
| src/pl/tcl/pltcl.c | modified | +2 −2 |