Re: Sequence Cleanup - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Sequence Cleanup
Date
Msg-id 19692.1039468794@sss.pgh.pa.us
Whole thread Raw
In response to Sequence Cleanup  (Rod Taylor <rbt@rbt.ca>)
List pgsql-hackers
Rod Taylor <rbt@rbt.ca> writes:
> I'd like ALTER SEQUENCE to be transaction safe.

I think that's inherently impossible without breaking the existing
behavior of setval/nextval, which is something we will not accept.
ALTER SEQUENCE would be better thought of as a form of setval with
even more parameters, but not fundamentally different semantics.

> Can I assume that
> a standard simple_heap_update() is valid against the sequence,

You can be certain that it is not.  There can be only one tuple in a
sequence table.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: Sequence Cleanup
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: psql's \d commands --- end of the line for 1-character identifiers?