Re:What if we treated Postgres like SQLite?
by OutOfHere on Monday September 22, 2025 @03:02PM
(#45337960)
I would never ever zip up a PostgreSQL data directory and expect it to restore elsewhere. I would use a proper export. If the export is too slow, it could help to use streaming replication to write intermediate files which can be moved to a backup location.
Even with SQLite, for a simple file copy to work reliably, one has to set these three:
Even with SQLite, for a simple file copy to work reliably, one has to set these three: