pg10,pg_suqences和pg_sequence

前端之家收集整理的这篇文章主要介绍了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

原文链接:https://www.f2er.com/postgresql/193107.html

猜你在找的Postgre SQL相关文章