mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Revert "Catalog NOT NULL constraints" and fallout
This reverts commit e056c557ae
and minor later fixes thereof.
There's a few problems in this new feature -- most notably regarding
pg_upgrade behavior, but others as well. This new feature is not in any
way critical on its own, so instead of scrambling to fix it we revert it
and try again in early 17 with these issues in mind.
Discussion: https://postgr.es/m/3801207.1681057430@sss.pgh.pa.us
This commit is contained in:
@ -390,14 +390,8 @@ _readConstraint(void)
|
||||
switch (local_node->contype)
|
||||
{
|
||||
case CONSTR_NULL:
|
||||
/* no extra fields */
|
||||
break;
|
||||
|
||||
case CONSTR_NOTNULL:
|
||||
READ_BOOL_FIELD(is_no_inherit);
|
||||
READ_STRING_FIELD(colname);
|
||||
READ_BOOL_FIELD(skip_validation);
|
||||
READ_BOOL_FIELD(initially_valid);
|
||||
/* no extra fields */
|
||||
break;
|
||||
|
||||
case CONSTR_DEFAULT:
|
||||
|
Reference in New Issue
Block a user