1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +03:00

Revert patch pending more discussion:

Disallow changing DEFAULT expression of a SERIAL column.
This commit is contained in:
Bruce Momjian
2006-04-30 01:08:07 +00:00
parent 366682fb66
commit 782df58a1c
7 changed files with 9 additions and 153 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.182 2006/04/29 16:43:54 momjian Exp $
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.183 2006/04/30 01:08:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -3362,11 +3362,6 @@ ATExecColumnDefault(Relation rel, const char *colName,
* safety, but at present we do not expect anything to depend on the
* default.
*/
if (newDefault)
RemoveSequenceDefault(RelationGetRelid(rel), attnum, DROP_RESTRICT, false);
else
RemoveSequenceDefault(RelationGetRelid(rel), attnum, DROP_RESTRICT, true);
RemoveAttrDefault(RelationGetRelid(rel), attnum, DROP_RESTRICT, false);
if (newDefault)