Re: Bug in Dependencies Code in 7.3.x?
От | Tom Lane |
---|---|
Тема | Re: Bug in Dependencies Code in 7.3.x? |
Дата | |
Msg-id | 1192.1041356511@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Bug in Dependencies Code in 7.3.x? (Bruce Momjian <pgman@candle.pha.pa.us>) |
Ответы |
Re: Bug in Dependencies Code in 7.3.x?
|
Список | pgsql-hackers |
Bruce Momjian <pgman@candle.pha.pa.us> writes: > Tom Lane wrote: >> Bruce Momjian <pgman@candle.pha.pa.us> writes: >>> Seems this is already a TODO: >>> * Have sequence dependency track use of DEFAULT sequences, seqname.nextval >> >> That's related but not the same issue. > Related in that ALTER TABLE DROP DEFAULT _doesn't_ see a dependancy for > sequences in a DEFAULT? Even if the dependency generator understood about nextval, it would generate a dependency from the expression to the sequence, not vice versa --- ie, the system would prevent you from dropping the sequence without dropping the default expression. It would not prevent ALTER TABLE DROP DEFAULT, which is what's at issue here. regards, tom lane
В списке pgsql-hackers по дате отправления: