|
Hello there, I was trying to do a live db archive using the following
steps:
BEGIN; SET transaction ISOLATION level
SERIALIZABLE;
pg_dump dbname | gzip
-9 > dbname-archive.gz
truncate table1,
table2,…; end; Well, the tables are truncated all right, but the db dump
file is empty!!! What went wrong with my logic? What should be the correct
procedure?
|