[英]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.