News for hackers. Stuff that matters.
Re:Just use Postgres for everything by everforward on Saturday December 10, 2022 @03:31PM (#33936506)
I think this is true only if you're willing to give up resiliency.

You'll have to shut the app down to back it up. That problem gets worse if you want some kind of a cold standby, since backups should be frequent.

You could replicate it, but that requires running a separate daemon and starts to beg the "why not just have Postgres be the daemon?" question.

Sysadmin tasks start to get very difficult when someone starts with SQLite and expects to get Postgres-like features out of it. I'd rather run Postgres than try to replicate or continually back up SQLite.

Re:Just use Postgres for everything by spiffytech on Saturday December 10, 2022 @04:23PM (#33936955)
> You'll have to shut the app down to back it up.

This is not the case:

1) SQLite recommends using the official backup API, rather than copying files on disk. The backup API can be used while the app is running.

2) Litestream is the hot new tool on the block. It streams incremental DB changes to a backup stored on S3, for up-to-date point-in-time recovery.

Re:Just use Postgres for everything by beagle3 on Sunday December 11, 2022 @01:03AM (#33940547)
Adding to (1), you don't have to code anything to the backup API - the standard "sqlite3" command line has a ".backup" command that does it for you.