从 9.1 版开始,PostgreSQL 支持创建不使用 WAL 并在任何数据库恢复期间被截断的 UNLOGGED 表。请参阅文档: create unlogged table
PostgreSQL 在哪里存储信息,关系是否为 UNLOGGED?我正在寻找一个查询来列出所有未记录的关系。
提前致谢
从 9.1 版开始,PostgreSQL 支持创建不使用 WAL 并在任何数据库恢复期间被截断的 UNLOGGED 表。请参阅文档: create unlogged table
PostgreSQL 在哪里存储信息,关系是否为 UNLOGGED?我正在寻找一个查询来列出所有未记录的关系。
提前致谢
它是relpersistence
pg_class 目录的列:
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';