diff options
Diffstat (limited to 'src/backend/tcop/utility.c')
-rw-r--r-- | src/backend/tcop/utility.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index 33b1aca72dc..db5c6e9c086 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.335 2010/02/26 02:01:04 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.336 2010/07/25 23:21:22 rhaas Exp $ * *------------------------------------------------------------------------- */ @@ -513,6 +513,13 @@ standard_ProcessUtility(Node *parsetree, RELKIND_RELATION); /* + * If "IF NOT EXISTS" was specified and the relation + * already exists, do nothing further. + */ + if (relOid == InvalidOid) + continue; + + /* * Let AlterTableCreateToastTable decide if this one * needs a secondary relation too. */ |