mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +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:
@ -2472,20 +2472,6 @@ pg_get_constraintdef_worker(Oid constraintId, bool fullCommand,
|
||||
conForm->connoinherit ? " NO INHERIT" : "");
|
||||
break;
|
||||
}
|
||||
case CONSTRAINT_NOTNULL:
|
||||
{
|
||||
AttrNumber attnum;
|
||||
|
||||
attnum = extractNotNullColumn(tup);
|
||||
|
||||
appendStringInfo(&buf, "NOT NULL %s",
|
||||
quote_identifier(get_attname(conForm->conrelid,
|
||||
attnum, false)));
|
||||
if (((Form_pg_constraint) GETSTRUCT(tup))->connoinherit)
|
||||
appendStringInfoString(&buf, " NO INHERIT");
|
||||
break;
|
||||
}
|
||||
|
||||
case CONSTRAINT_TRIGGER:
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user