+ Move sequences' metadata fields into a new
+ linkend="catalog-pg-sequence">pg_sequence>>
+ system catalog (Peter Eisentraut)
+
+
+ A sequence relation now stores only the fields that can be modified
+ by nextval()>, that
+ is last_value>, log_cnt>,
+ and is_called>. Other sequence properties, such as
+ the starting value and increment, are kept in a corresponding row of
+ the pg_sequence> catalog.
+ ALTER SEQUENCE> updates are now fully transactional,
+ implying that the sequence is locked until commit.
+ The nextval()> and setval()> functions
+ remain nontransactional.
+
+
+ The main incompatibility introduced by this change is that selecting
+ from a sequence relation now returns only the three fields named
+ above. To obtain the sequence's other properties, applications must
+ look into pg_sequence>. The new system
+ view pg_sequences>>
+ can also be used for this purpose; it provides column names that are
+ more compatible with existing code.
+
+
+
+
+
- Create a
- linkend="catalog-pg-sequence">pg_sequence>>
- system catalog to store sequence metadata (Peter Eisentraut)
-
-
- Sequence metadata includes the start, increment, etc, properties.
- ALTER SEQUENCE> updates are now fully transactional,
- implying that the sequence is locked until commit. Sequences'
- current values are still stored in individual table files, and
- the nextval()> and setval()> functions
- remain nontransactional.
-
-
- Also
- add pg_sequences>>
- view to show all sequences.
-
-
-
-
-