Re: Sequence update function?

Поиск
Список
Период
Сортировка
От Thomas Markus
Тема Re: Sequence update function?
Дата
Msg-id 466E3DAC.10209@proventis.net
обсуждение исходный текст
Ответ на Sequence update function?  ("Uwe C. Schroeder" <uwe@oss4u.com>)
Список pgsql-admin
do a

select setval('sequence',max(col)+1) from tablename

for each table

tm

Uwe C. Schroeder schrieb:
> Hi,
>
> just thought I ask before I start doing it myself: Has anyone ever written a
> stored procedure (or any other means) of syncing the sequence to the max #
> key in the corresponding tables?
>


Вложения

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

Предыдущее
От: John DeSoi
Дата:
Сообщение: Re: problems installing postgresql 8.0 on Mac OS
Следующее
От: "Mensinger, Oliver"
Дата:
Сообщение: Re: How to restore updated records