Re: .sequence_name != ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: .sequence_name != ?
Дата
Msg-id 7590.1049477052@sss.pgh.pa.us
обсуждение исходный текст
Ответ на .sequence_name != ?  ("Ed L." <pgsql@bluepolka.net>)
Ответы Re: .sequence_name != ?
Список pgsql-hackers
"Ed L." <pgsql@bluepolka.net> writes:
> When a sequence is created in 7.3.2, it appears you get a new table for each 
> sequence object.  Is it ever possible for the sequence_name in a sequence 
> relation not to match the name of the relation itself?

ALTER TABLE RENAME on a sequence doesn't update the sequence_name.

I think someone looked at doing that update, but we concluded it was too
messy (mainly because ALTER RENAME is transactional but updates to a
sequence tuple aren't).

In general I'd counsel that you should ignore the sequence_name field
anyway.  It's vestigial.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: more contrib: log rotator
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: [PERFORM] OSS database needed for testing