Re: Patch for bug #2073 (Can't drop sequence when created via SERIAL column)
От | Tom Lane |
---|---|
Тема | Re: Patch for bug #2073 (Can't drop sequence when created via SERIAL column) |
Дата | |
Msg-id | 3350.1144725239@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Patch for bug #2073 (Can't drop sequence when created via SERIAL column) (Dhanaraj M - Sun Microsystems <dhanaraj.m@mail-apac.sun.com>) |
Ответы |
Re: Patch for bug #2073 (Can't drop sequence when created
|
Список | pgsql-patches |
Dhanaraj M - Sun Microsystems <dhanaraj.m@mail-apac.sun.com> writes: > I fixed the above bug. I attach the patch here. Please review and > acknowledge me. > Bug details > ======== > BUG #2073: Can't drop sequence when created via SERIAL column That isn't a bug, and this "fix" is not appropriate. See eg Bruce's response to that bug report: http://archives.postgresql.org/pgsql-bugs/2005-11/msg00304.php I speculated a bit ago (can't find it in the archives at the moment) that we should abandon the hidden dependency altogether, and go back to having SERIAL just create the sequence and the default expression. Another idea that might be worth exploring is to link the sequence to the default expression rather than to the table column itself. But randomly dropping the dependency is not the answer. regards, tom lane
В списке pgsql-patches по дате отправления: