diff options
| author | Bruce Momjian | 2013-01-26 18:24:50 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2013-01-26 18:24:50 +0000 |
| commit | 7e2322dff30c04d90c0602d2b5ae24b4881db88b (patch) | |
| tree | 572a13afcce06ae50c73787058d66729540d7992 /src/include | |
| parent | 7c83619b50c8f8a6d75105636e3ca63a9d2eb7a9 (diff) | |
Allow CREATE TABLE IF EXIST so succeed if the schema is nonexistent
Previously, CREATE TABLE IF EXIST threw an error if the schema was
nonexistent. This was done by passing 'missing_ok' to the function that
looks up the schema oid.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/catalog/namespace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/catalog/namespace.h b/src/include/catalog/namespace.h index c37df8686ea..4fadc746a8b 100644 --- a/src/include/catalog/namespace.h +++ b/src/include/catalog/namespace.h @@ -106,7 +106,7 @@ extern void DeconstructQualifiedName(List *names, char **nspname_p, char **objname_p); extern Oid LookupNamespaceNoError(const char *nspname); -extern Oid LookupExplicitNamespace(const char *nspname); +extern Oid LookupExplicitNamespace(const char *nspname, bool missing_ok); extern Oid get_namespace_oid(const char *nspname, bool missing_ok); extern Oid LookupCreationNamespace(const char *nspname); |
