Re: Resetting a sequence's last value... - Mailing list pgsql-general

From Tom Lane
Subject Re: Resetting a sequence's last value...
Date
Msg-id 24795.1051457489@sss.pgh.pa.us
Whole thread Raw
In response to Re: Resetting a sequence's last value...  (Sean Chittenden <sean@chittenden.org>)
Responses Re: Resetting a sequence's last value...  (Sean Chittenden <sean@chittenden.org>)
List pgsql-general
Sean Chittenden <sean@chittenden.org> writes:
> I'm looking to have things return an error if someone calls currval()
> on the sequence.  -sc

There isn't any mechanism for that, although I imagine it wouldn't be
hard to add such a function to commands/sequence.c.  But the requirement
seems a bit bizarre.  Maybe there's a better way to do whatever you're
after?

            regards, tom lane


pgsql-general by date:

Previous
From: "Bruno Baguette"
Date:
Subject: Cannot use the queries buffer of psql... :-(
Next
From: "Fred Moyer"
Date:
Subject: Re: Backing up 16TB of data (was Re: > 16TB worth of