Re: Make an id field max(id)+1 rather than SERIAL
От
Vijay Deval
Тема
Re: Make an id field max(id)+1 rather than SERIAL
Дата
Msg-id
3D8DE9D2.24EA417A@giaspn01.vsnl.net.in
Список
Дерево обсуждения
Re: Make an id field max(id)+1 rather than SERIAL Vijay Deval <deval@giaspn01.vsnl.net.in>
Hi
after inserting bulk data, Select Max of the sequence.
SELECT setval('abc_xyz_seq', max value);
should get the sequence in synchro.
Vijay
Rory Campbell-Lange wrote:
>
> I have problems after exporting then importing data into newly created
> databases that the sequence and the indexed serial fields get out of
> alignment.
В списке pgsql-novice по дате отправления