> This all assumes that associating the NEXTVALUE state with an EState
> is a good approximation of the spec's statements about how often to
> advance the sequence counter. I think it is all right for simple cases
That is an awful lot of work to do in order to avoid implementing
IDENTITIES and GENERATORS.
Alas... For the amount of shuffling I seem to do between DB2 and
PostgreSQL (not that I understand DB2 by any means) it is probably worth
trying.