aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/json.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-02-28 18:10:40 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2012-02-28 18:10:40 -0500
commit0140a11b9ba5b22e1e4807e178bca770d46c3e28 (patch)
tree8a3fad77d82609258449d6a89939edc73f5a7655 /src/include/utils/json.h
parent973e9fb294dc05a384ecae7623923ae53cb81806 (diff)
downloadpostgresql-0140a11b9ba5b22e1e4807e178bca770d46c3e28.tar.gz
postgresql-0140a11b9ba5b22e1e4807e178bca770d46c3e28.zip
Fix thinko in new match_join_clauses_to_index() logic.
We don't need to constrain the other side of an indexable join clause to not be below an outer join; an example here is SELECT FROM t1 LEFT JOIN t2 ON t1.a = t2.b LEFT JOIN t3 ON t2.c = t3.d; We can consider an inner indexscan on t3.d using c = d as indexqual, even though t2.c is potentially nulled by a previous outer join. The comparable logic in orindxpath.c has always worked that way, but I was being overly cautious here.
Diffstat (limited to 'src/include/utils/json.h')
0 files changed, 0 insertions, 0 deletions