(no title)
eirikbakke | 5 months ago
In theory the data directory works with any PostgreSQL binaries from the same major version of PostgreSQL, but I have seen cases where this fails e.g. because the binaries were from the same major version but compiled with different build options.
OutOfHere|5 months ago
Even with SQLite, for a simple file copy to work reliably, one has to set these three:
markusw|5 months ago
For sqlite, I would recommend "sqlite3 app.db '.backup backup.db'" though, if that's an option. Guaranteed consistent!
tracker1|5 months ago
I often wish that Firebird had a license that people found friendlier to use as it always felt like a perfect technical option for many use cases from embedded to a standalone server. PG has clearly eclipsed it at this point though.
markusw|5 months ago
markusw|5 months ago
I wonder whether packaging everything in Docker (including a specific Postgres container identified by hash or whatever) and deploying on the same architecture would solve this?
edoceo|5 months ago
Our docker-compose.yaml has Postgrs, Redis, OPA, Traefik and then our four services. Works a treat.
One thing we haven't solved for is how to have the PG upgrade work when we update major in the image. Nice that 16 should work for a long while.
oulipo2|5 months ago
eirikbakke|5 months ago
It does rule out some common SQLite use cases, such as using the database for app persistence. The app would never be able to upgrade the major version of PostgreSQL, unless it bundled PostgreSQL binaries for every major version ever used.
chucky_z|5 months ago
I love the pg_* commands but they ain't exactly the speediest things around.
amtamt|5 months ago
freedomben|5 months ago