From fb34e94d214d6767910df47aa7c605c452d11c57 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 3 Oct 2012 19:47:11 -0400 Subject: Support CREATE SCHEMA IF NOT EXISTS. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per discussion, schema-element subcommands are not allowed together with this option, since it's not very obvious what should happen to the element objects. Fabrízio de Royes Mello --- src/include/nodes/parsenodes.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index e10e3a1b345..09b15e7694c 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -1157,6 +1157,7 @@ typedef struct CreateSchemaStmt char *schemaname; /* the name of the schema to create */ char *authid; /* the owner of the created schema */ List *schemaElts; /* schema components (list of parsenodes) */ + bool if_not_exists; /* just do nothing if schema already exists? */ } CreateSchemaStmt; typedef enum DropBehavior -- cgit v1.2.3