Re: Migration problem - serial fields

Поиск
Список
Период
Сортировка
От Jochen Mader
Тема Re: Migration problem - serial fields
Дата
Msg-id 1015519258.23888.14.camel@traumschiff
обсуждение исходный текст
Ответ на Migration problem - serial fields  (rick@planetdigital.com (Rick))
Список pgsql-general
> 1.  Do the transfer, put values into the serial field, then find the
> highest value and manually set the sequence somehow to start from
> highest+1 (seed value).  (I understand there is a problem with orphan
> sequences with serial fields if you drop tables, so maybe I shouldn't
> use serials anyway?)
I'd suggest to use this sollution. I have had the same problem some time
ago and solved it by inserting my tables and then creating the erial.

Cheers
Jochen


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

Предыдущее
От: "Shaun Grannis"
Дата:
Сообщение: Advice for optimizing queries using Large Tables
Следующее
От: "Len Morgan"
Дата:
Сообщение: Re: Temp Tables