mirror of
https://github.com/postgres/postgres.git
synced 2025-10-15 05:46:52 +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:
@@ -601,7 +601,6 @@ RestoreArchive(Archive *AHX)
|
||||
|
||||
if (strcmp(te->desc, "CONSTRAINT") == 0 ||
|
||||
strcmp(te->desc, "CHECK CONSTRAINT") == 0 ||
|
||||
strcmp(te->desc, "NOT NULL CONSTRAINT") == 0 ||
|
||||
strcmp(te->desc, "FK CONSTRAINT") == 0)
|
||||
strcpy(buffer, "DROP CONSTRAINT");
|
||||
else
|
||||
@@ -3512,7 +3511,6 @@ _getObjectDescription(PQExpBuffer buf, const TocEntry *te)
|
||||
/* these object types don't have separate owners */
|
||||
else if (strcmp(type, "CAST") == 0 ||
|
||||
strcmp(type, "CHECK CONSTRAINT") == 0 ||
|
||||
strcmp(type, "NOT NULL CONSTRAINT") == 0 ||
|
||||
strcmp(type, "CONSTRAINT") == 0 ||
|
||||
strcmp(type, "DATABASE PROPERTIES") == 0 ||
|
||||
strcmp(type, "DEFAULT") == 0 ||
|
||||
|
Reference in New Issue
Block a user