Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
mdavidn
3y ago
0 comments
Save
Share
I ran into this recently on a newer version. Postgres will not use the presence of a foreign key (referencing a unique index) to skip unnecessary inner joins.
0 comments
1 comments · 1 top-level
top
newest
oldest
taspeotis
3y ago
I have done my own (simple) testing on Postgres 13 and was unable to make Postgres elide the join.
j
/
k
navigate · click thread line to collapse