Re: undefine currval() - Mailing list pgsql-sql

From Tom Lane
Subject Re: undefine currval()
Date
Msg-id 3633.1063056782@sss.pgh.pa.us
Whole thread Raw
In response to undefine currval()  (Chris Gamache <cgg007@yahoo.com>)
List pgsql-sql
Chris Gamache <cgg007@yahoo.com> writes:
> One (theoretical) workaround would be to issue some sort of command to the
> back-end database to wipe all values of currval() when a "new" connection is
> made. I've done some digging in the system tables and source code, and can't
> find an obvious solution.

The state involved is in a linked list kept by commands/sequence.c.
Such a command would not be difficult to implement, if you could get
agreement on the syntax to use.
        regards, tom lane


pgsql-sql by date:

Previous
From: Chris Gamache
Date:
Subject: undefine currval()
Next
From: Bruce Momjian
Date:
Subject: Re: undefine currval()