pg10,pg_suqences和pg_sequence

Move sequences' metadata fields into a newpg_sequencesystem catalog (Peter Eisentraut)

A sequence relation now stores only the fields that can be modified bynextval(),that islast_value,log_cnt,andis_called. Other sequence properties,such as the starting value and increment,are kept in a corresponding row of thepg_sequencecatalog.ALTER SEQUENCEupdates are now fully transactional,implying that the sequence is locked until commit. Thenextval()andsetval()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 intopg_sequence. The new system viewpg_sequencescan also be used for this purpose; it provides column names that are more compatible with existing code.

The output ofpsql's\dcommand for a sequence has been redesigned,too.


参考https://www.postgresql.org/docs/10/static/release-10.html

相关文章

文章浏览阅读601次。Oracle的数据导入导出是一项基本的技能,...
文章浏览阅读553次。开头还是介绍一下群,如果感兴趣polardb...
文章浏览阅读3.5k次,点赞3次,收藏7次。折腾了两个小时多才...
文章浏览阅读2.7k次。JSON 代表 JavaScript Object Notation...
文章浏览阅读2.9k次,点赞2次,收藏6次。navicat 连接postgr...
文章浏览阅读1.4k次。postgre进阶sql,包含分组排序、JSON解...