6

从 9.1 版开始,PostgreSQL 支持创建不使用 WAL 并在任何数据库恢复期间被截断的 UNLOGGED 表。请参阅文档: create unlogged table

PostgreSQL 在哪里存储信息,关系是否为 UNLOGGED?我正在寻找一个查询来列出所有未记录的关系。

提前致谢

4

2 回答 2

11

它是relpersistencepg_class 目录的列:

http://www.postgresql.org/docs/9.1/static/catalog-pg-class.html

于 2012-03-14T13:44:16.020 回答
5

https://www.postgresql.org/docs/current/catalog-pg-class.html

select relname, relowner from pg_class where relpersistence='u';
于 2019-07-30T11:03:07.070 回答