From: Michael Fuhr <mike@fuhr.org>
To: jeff sacksteder <jsacksteder@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: alter sequence + subqueries
Date: Fri, 16 Sep 2005 17:27:19 -0600
Message-ID: <20050916232719.GA96425@winnie.fuhr.org> (raw)
In-Reply-To: <51c8a7be050916153613795e1a@mail.gmail.com>
References: <51c8a7be050916153613795e1a@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mike@fuhr.org, jsacksteder@gmail.com
Subject: Re: alter sequence + subqueries
In-Reply-To: <20050916232719.GA96425@winnie.fuhr.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox