Re: Resetting a sequence's last value...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sean Chittenden <sean(at)chittenden(dot)org>
Cc: Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in>, pgsql-general(at)postgresql(dot)org
Subject: Re: Resetting a sequence's last value...
Date: 2003-04-27 15:31:29
Message-ID: 24795.1051457489@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sean Chittenden <sean(at)chittenden(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-04-27 15:36:02 Re: Cannot use the queries buffer of psql... :-(
Previous Message Fred Moyer 2003-04-27 15:15:32 Re: Backing up 16TB of data (was Re: > 16TB worth of