diff options
author | Robert Haas <rhaas@postgresql.org> | 2011-06-27 15:06:32 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2011-06-27 15:25:44 -0400 |
commit | 9abbed0629c862710bdc0f0dd3565e069ecab9da (patch) | |
tree | dc1aa4dc7b0708abab6a2408ff05ba2c4cee45ea /src/backend/parser/parse_relation.c | |
parent | e16954f3d27fa8e16c379ff6623ae18d6250a39c (diff) | |
download | postgresql-9abbed0629c862710bdc0f0dd3565e069ecab9da.tar.gz postgresql-9abbed0629c862710bdc0f0dd3565e069ecab9da.zip |
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.
Diffstat (limited to 'src/backend/parser/parse_relation.c')
-rw-r--r-- | src/backend/parser/parse_relation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/parser/parse_relation.c b/src/backend/parser/parse_relation.c index 5359e691dd1..edfb1f12e97 100644 --- a/src/backend/parser/parse_relation.c +++ b/src/backend/parser/parse_relation.c @@ -826,7 +826,7 @@ parserOpenTable(ParseState *pstate, const RangeVar *relation, int lockmode) ParseCallbackState pcbstate; setup_parser_errposition_callback(&pcbstate, pstate, relation->location); - rel = try_heap_openrv(relation, lockmode); + rel = heap_openrv_extended(relation, lockmode, true); if (rel == NULL) { if (relation->schemaname) |