Re: alter sequence + subqueries - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: alter sequence + subqueries
Date
Msg-id 20050916232719.GA96425@winnie.fuhr.org
Whole thread Raw
In response to alter sequence + subqueries  (jeff sacksteder <jsacksteder@gmail.com>)
List 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 by date:

Previous
From: Kenneth Dombrowski
Date:
Subject: Re: plpgsql function not accepting NULL value
Next
From: "Magnus Hagander"
Date:
Subject: Re: How to install Postgresql 8 on different drive letter?