aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/tablecmds.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-04-20 20:10:46 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-04-20 20:10:46 -0400
commit1f0363001166ef6a43619846e44cfb9dbe7335ed (patch)
tree316b47a8f74f75bd6eba9e0e4d7e1feb9285ac46 /src/backend/commands/tablecmds.c
parent5b7b5518d0ea56c422a197875f7efa5deddbb388 (diff)
downloadpostgresql-1f0363001166ef6a43619846e44cfb9dbe7335ed.tar.gz
postgresql-1f0363001166ef6a43619846e44cfb9dbe7335ed.zip
Adjust join_search_one_level's handling of clauseless joins.
For an initial relation that lacks any join clauses (that is, it has to be cartesian-product-joined to the rest of the query), we considered only cartesian joins with initial rels appearing later in the initial-relations list. This creates an undesirable dependency on FROM-list order. We would never fail to find a plan, but perhaps we might not find the best available plan. Noted while discussing the logic with Amit Kapila. Improve the comments a bit in this area, too. Arguably this is a bug fix, but given the lack of complaints from the field I'll refrain from back-patching.
Diffstat (limited to 'src/backend/commands/tablecmds.c')
0 files changed, 0 insertions, 0 deletions