summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-12-30 15:24:28 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2018-12-30 15:24:28 -0500
commitb5415e3c2187ab304390524f5ae66b4bd2c58279 (patch)
tree220849a4768866109c2a955b20cf5783b8ad459a /src/backend/access/gist/gist.c
parent6f19a8c41f976236310a272bb646d3411759e18d (diff)
downloadpostgresql-b5415e3c2187ab304390524f5ae66b4bd2c58279.tar.gz
Support parameterized TidPaths.
Up to now we've not worried much about joins where the join key is a relation's CTID column, reasoning that storing a table's CTIDs in some other table would be pretty useless. However, there are use-cases for this sort of query involving self-joins, so that argument doesn't really hold water. This patch allows generating plans for joins on CTID that use a nestloop with inner TidScan, similar to what we might do with an index on the join column. This is the most efficient way to join when the outer side of the nestloop is expected to yield relatively few rows. This change requires upgrading tidpath.c and the generated TidPaths to work with RestrictInfos instead of bare qual clauses, but that's long-postponed technical debt anyway. Discussion: https://postgr.es/m/17443.1545435266@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions