Remove redundant variable
Author: Amul Sul <sulamul@gmail.com> Reviewed-by: Jeevan Ladhe <jeevan.ladhe@enterprisedb.com> Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Reviewed-by: Justin Pryzby <pryzby@telsasoft.com> Discussion: https://postgr.es/m/CAAJ_b94HaNcrPVREUuB9-qUn2uB+gfcoX3FG_Vx0S6aFse+yhw@mail.gmail.com
This commit is contained in:
parent
469116389e
commit
a288d94c91
@ -176,7 +176,6 @@ transformCreateStmt(CreateStmt *stmt, const char *queryString)
|
|||||||
Oid namespaceid;
|
Oid namespaceid;
|
||||||
Oid existing_relid;
|
Oid existing_relid;
|
||||||
ParseCallbackState pcbstate;
|
ParseCallbackState pcbstate;
|
||||||
bool is_foreign_table = IsA(stmt, CreateForeignTableStmt);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We must not scribble on the passed-in CreateStmt, so copy it. (This is
|
* We must not scribble on the passed-in CreateStmt, so copy it. (This is
|
||||||
@ -333,8 +332,11 @@ transformCreateStmt(CreateStmt *stmt, const char *queryString)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Postprocess check constraints.
|
* Postprocess check constraints.
|
||||||
|
*
|
||||||
|
* For regular tables all constraints can be marked valid immediately,
|
||||||
|
* because the table is new therefore empty. Not so for foreign tables.
|
||||||
*/
|
*/
|
||||||
transformCheckConstraints(&cxt, !is_foreign_table ? true : false);
|
transformCheckConstraints(&cxt, !cxt.isforeign);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Postprocess extended statistics.
|
* Postprocess extended statistics.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user