summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2018-07-27 09:34:57 -0400
committerRobert Haas <rhaas@postgresql.org>2018-07-27 09:40:52 -0400
commit3e32109049142d3b6adb3b45afd0bb0dea24c23a (patch)
tree14331f657cc8a80b19fbb77ad663a8b1b632d5f9 /src/backend/access/gist/gistget.c
parent8ce29bb4f0df0806cf1995594b6390e9a9997665 (diff)
downloadpostgresql-3e32109049142d3b6adb3b45afd0bb0dea24c23a.tar.gz
Use key and partdesc from PartitionDispatch where possible.
Instead of repeatedly fishing the data out of the relcache entry, let's use the version that we cached in the PartitionDispatch. We could alternatively rip out the PartitionDispatch fields altogether, but it doesn't make much sense to have them and not use them; before this patch, partdesc was set but altogether unused. Amit Langote and I both thought using them was a litle better than removing them, so this patch takes that approach. Discussion: http://postgr.es/m/CA+TgmobFnxcaW-Co-XO8=yhJ5pJXoNkCj6Z7jm9Mwj9FGv-D7w@mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions