Resetting a sequence's last value...

From: Sean Chittenden <sean(at)chittenden(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Resetting a sequence's last value...
Date: 2003-04-27 07:36:45
Message-ID: 20030427073645.GK35599@perrin.int.nxad.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a database application that makes extensive use of currval(),
but after a certain point in the transaction, I'd like to reset the
state of a given sequence so that the backend will act as if the
sequence hasn't been called. Something like resetval() or the like is
what I'm looking for, but it doesn't exist as far as I can tell.
Other than reconnecting to the backend, are there other programmatic
alternatives? -sc

--
Sean Chittenden

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shridhar Daithankar 2003-04-27 08:07:47 Re: Resetting a sequence's last value...
Previous Message Ron Johnson 2003-04-27 01:07:25 Re: Backing up 16TB of data (was Re: > 16TB worth of