Re: [HACKERS] Sequences....

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Sequences....
Дата
Msg-id 14901.921554608@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Sequences....  (Ryan Bradetich <rbrad@hpb50023.boi.hp.com>)
Ответы Re: [HACKERS] Sequences....  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
>> As long as a sequence can point to more than 
>> one table/column combination.

Doesn't seem like a problem to me --- as far as I understood Ryan,
the new table he's proposing would only contain entries for sequences
created to implement SERIAL keywords.  For those, I think there should
indeed be a 1-1 mapping between parent table (+column) and resulting
sequence.

But yeah, don't break usage of ordinary standalone sequences ;-).

Another thing to think about is what it's going to take to dump and
reload this structure in pg_dump.  We need to be able to reconstitute
the system tables' contents and the current value of the SERIAL sequence
after a reload.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] libpq and SPI
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Re: [GENERAL] Bug with sequences in 6.4.2