News for hackers. Stuff that matters.
Re:Just use Postgres for everything by daneel_w on Saturday December 10, 2022 @12:38PM (#33934628)
"Use Postgres for caching instead of Redis with UNLOGGED tables and TEXT as a JSON data type."

What the heck?! No!

Re:Just use Postgres for everything by robin_reala on Saturday December 10, 2022 @12:48PM (#33934750)
More info on why not?
Re:Just use Postgres for everything by kmbfjr on Saturday December 10, 2022 @07:11PM (#33938482)
Because it is not a cache. High entropy tables require a lot of vacuuming, which adds overhead to actual database operations. While you can set autovacuum parameters per table, they still are not free .

If you need something like Redis or memcache, use that for anything that is heavy on writes and deletes.

Re:Just use Postgres for everything by daneel_w on Saturday December 10, 2022 @07:05PM (#33938450)
If the suggestion truly is to try squeeze as much utility as possible out of a single RDMBS setup, and if you already need and use an RDBMS, then I would consider it as an option. If not, it's an absolutely idiotic choice. And that's the problem with this article - it really comes of as a suggestion to supplant your Redis setup, a dedicated key-value store, with Postgres, a full-fledged and highly complex relational database.
Re:Just use Postgres for everything by qatanah on Saturday December 10, 2022 @12:59PM (#33934874)
You offload some load like pg connections from postgres to redis. Your pg shared buffers would also be available for other stuff.