Re: [HACKERS] Sequences....

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема Re: [HACKERS] Sequences....
Дата
Msg-id 36EF526C.526144AA@krs.ru
обсуждение исходный текст
Ответ на Re: [HACKERS] Sequences....  (Ryan Bradetich <rbrad@hpb50023.boi.hp.com>)
Список pgsql-hackers
Ryan Bradetich wrote:
> 
> I've finished that patch for the serial->sequences but I am not happy with it.
> 
> I don't think belive my proposed idea is the correct approach.  I still want to work on this
> idea, but I'm not sure how to proceed.
> 
> Here are my thoughts:
> 
> 1.  If I use my proposed idea, everything works great until you dump/reload the table.  The dump
> doesn't store the data type as serial, but as int with a default and a sequence.  So when the
> table gets reloaded, the relationship nolonger exists.  (I think I finally understand the dump
> issues now Tom :))

Add attnum - attribute number of SERIAL column in table -
to new relation: using this pg_dump will know what
columns are SERIAL ones and what are not...

Vadim


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Subqueries and indexes
Следующее
От: Vadim Mikheev
Дата:
Сообщение: Re: [HACKERS] Subqueries and indexes