Use a hash table to store current sequence values.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 21025d4a5322307bcfef1222f497a3aacb2fc79a
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2013-11-15T10:29:38Z
Releases: 9.4.0
Use a hash table to store current sequence values.

This speeds up nextval() and currval(), when you touch a lot of different
sequences in the same backend.

David Rowley

Files

PathChange+/−
src/backend/commands/sequence.c modified +35 −36