mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Make FKs valid at creation when added as column constraints.
Bug report from Alvaro Herrera
This commit is contained in:
@ -1696,6 +1696,7 @@ transformFKConstraints(CreateStmtContext *cxt,
|
||||
Constraint *constraint = (Constraint *) lfirst(fkclist);
|
||||
|
||||
constraint->skip_validation = true;
|
||||
constraint->initially_valid = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user