]> granicus.if.org Git - postgresql/commit
Allow CREATE TABLE IF EXIST so succeed if the schema is nonexistent
authorBruce Momjian <bruce@momjian.us>
Sat, 26 Jan 2013 18:24:50 +0000 (13:24 -0500)
committerBruce Momjian <bruce@momjian.us>
Sat, 26 Jan 2013 18:24:50 +0000 (13:24 -0500)
commit7e2322dff30c04d90c0602d2b5ae24b4881db88b
tree572a13afcce06ae50c73787058d66729540d7992
parent7c83619b50c8f8a6d75105636e3ca63a9d2eb7a9
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.
src/backend/catalog/aclchk.c
src/backend/catalog/namespace.c
src/backend/commands/indexcmds.c
src/backend/commands/opclasscmds.c
src/backend/commands/trigger.c
src/backend/parser/parse_oper.c
src/backend/parser/parse_type.c
src/backend/utils/adt/xml.c
src/include/catalog/namespace.h