1
0
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:
Alvaro Herrera
2023-04-12 19:29:21 +02:00
parent 8e82db97b0
commit 9ce04b50e1
42 changed files with 648 additions and 2897 deletions

View File

@ -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: