Allow CREATE TABLE IF EXIST so succeed if the schema is nonexistent
Bruce Momjian <bruce@momjian.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/aclchk.c | modified | +1 −1 |
| src/backend/catalog/namespace.c | modified | +56 −30 |
| src/backend/commands/indexcmds.c | modified | +1 −1 |
| src/backend/commands/opclasscmds.c | modified | +2 −2 |
| src/backend/commands/trigger.c | modified | +2 −1 |
| src/backend/parser/parse_oper.c | modified | +1 −1 |
| src/backend/parser/parse_type.c | modified | +1 −1 |
| src/backend/utils/adt/xml.c | modified | +3 −3 |
| src/include/catalog/namespace.h | modified | +1 −1 |