▲ | ddxv 10 hours ago | |||||||
I've built myself a few problems that I haven't fixed yet: Many materialized views that rely on materialized views. When one at the bottom, or a table, needs a changed all views need to be dropped and recreated. Using a warm standby for production. I love having a read only production database, but since it's not the primary, it always feels like it's on the losing end of the system. Recently upgraded to Postgres 18 and forgot that means I need to rm rf the standby and pg_basebackup to rebuild... That wasn't fun. | ||||||||
▲ | physicles 3 hours ago | parent | next [-] | |||||||
Why do you need a warm standby for production? Do you need >= 3 nines? Our staging environment has its own instance that is rebuilt from prod, with pii removed, every day outside working hours (this normally takes about 15 minutes). It’s fantastic for testing migrations, and is easy to support compared with a warm standby. | ||||||||
| ||||||||
▲ | echelon 10 hours ago | parent | prev [-] | |||||||
I'd like to call views, triggers, and integrity constraints antipatterns. Your code should handle the data model and never allow bad states to enter the database. There's too much performance loss and too many footguns from these "features". |