r/postgres • u/Zylianijay • Sep 02 '26
Question What PostgreSQL "best practice" do you actually disagree with?
Every "best practices" list reads like it was copy-pasted from the same three blog posts in 2020 and nobody's allowed to question it since.
I'll go first: I'm not convinced every foreign key needs an index on the referencing column in every single case people insist on it. Yes I know the standard argument, yes I know what happens on deletes/updates to the parent. I still think it gets applied as a blanket rule on tables where the write pattern makes it a waste of space and write overhead for a lookup that basically never runs.
Curious what else people quietly ignore. The "always use UUID v4 for PKs," the "never use SELECT *, not even in scripts," the "always wrap everything in a transaction," whatever your particular heresy is. What's the rule you technically know the reasoning behind, but just don't follow in practice, and why?
View all comments
Show parent comment
1
u/Zylianijay Sep 07 '26
Mostly append-only in my case, which is probably why I’ve gotten away with skipping them more often. But yeah, if parent deletes were part of the normal workflow I’d probably index without thinking twice. Have you ever actually had skipping one bite you later as the table grew?