Created
May 27, 2019 08:19
-
-
Save ruiteix/45b4cd22f373eaeac4d58a7176299760 to your computer and use it in GitHub Desktop.
Postgres unlogged tables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- creation table unlogged | |
CREATE UNLOGGED TABLE name ( | |
-- ... | |
); | |
-- convertir une table | |
ALTER TABLE name SET UNLOGGED; | |
-- Lister les tables unlogged | |
SELECT relname FROM pg_class WHERE relpersistence = 'u'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment