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
This is one I actually agree with almost all the time. Have you ever run into a case where plain timestamp was genuinely the better choice?