[英]List all UNLOGGED tables in Postgresql database
从版本9.1开始,PostgreSQL支持创建不使用WAL的UNLOGGED表,并在任何数据库恢复期间被截断。 请参阅文档: create unlogged table
PostgreSQL在哪里存储信息,关系是否是UNLOGGED? 我正在寻找一个查询列出所有UNLOGGED的关系。
提前致谢
它是pg_class目录的relpersistence
列:
http://www.postgresql.org/docs/9.1/static/catalog-pg-class.html
https://www.postgresql.org/docs/current/catalog-pg-class.html
select relname, relowner from pg_class where relpersistence='u';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.