Re: alter sequence + subqueries

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: alter sequence + subqueries
Дата
Msg-id 20050916232719.GA96425@winnie.fuhr.org
обсуждение исходный текст
Ответ на alter sequence + subqueries  (jeff sacksteder <jsacksteder@gmail.com>)
Список pgsql-sql
On Fri, Sep 16, 2005 at 06:36:48PM -0400, jeff sacksteder wrote:
> ALTER SEQUENCE foo_id_seq 
> RESTART WITH (SELECT max(id) FROM foo);
> 
> Is this syntax correct and supported?

Not according to the documentation; for an alternative see the
example under "User Comments":

http://www.postgresql.org/docs/8.0/interactive/sql-altersequence.html

-- 
Michael Fuhr


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

Предыдущее
От: Kenneth Dombrowski
Дата:
Сообщение: Re: plpgsql function not accepting NULL value
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: How to install Postgresql 8 on different drive letter?