From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matteo Beccati <m.beccati@crpsoftware.it>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to reset sequences on pre-7.1
Date: Wed, 17 Apr 2002 11:25:35 -0400
Message-ID: <6669.1019057135@sss.pgh.pa.us> (raw)
In-Reply-To: <2780D698C269CB4EB303715BA48B6A104D35@sole.CRP>
References: <2780D698C269CB4EB303715BA48B6A104D35@sole.CRP>
"Matteo Beccati" <m.beccati@crpsoftware.it> writes:
> I usually use a:
> SELECT setval('seq_name', NULL);
> to reset sequences, so the next time it's called it returns '1'. This
> works in all Pg releases I've ever tested but 7.0.
On all recent releases, that is a complete no-op, because setval() is
a strict function. Better check what you were actually doing.
regards, tom lane
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: tgl@sss.pgh.pa.us, m.beccati@crpsoftware.it
Subject: Re: How to reset sequences on pre-7.1
In-Reply-To: <6669.1019057135@sss.pgh.pa.us>
* 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