Do not repack unlogged tables (close #71)

This commit is contained in:
Daniel Cheng (鄭郁邦) 2016-02-12 18:50:45 +08:00
parent 1b5fd1ae70
commit 71f8833958

View File

@ -208,6 +208,7 @@ CREATE VIEW repack.tables AS
LEFT JOIN pg_namespace N ON N.oid = R.relnamespace
LEFT JOIN pg_tablespace S ON S.oid = R.reltablespace
WHERE R.relkind = 'r'
AND R.relpersistence = 'p'
AND N.nspname NOT IN ('pg_catalog', 'information_schema')
AND N.nspname NOT LIKE E'pg\\_temp\\_%';