aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/relcache.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-02-04 22:14:07 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2018-02-04 22:14:07 -0500
commit05d0f13f0701d84e4e6784da336aabcc2dfc8ade (patch)
treeee3241637b29fe4dc5ab2e43738a4b0d47eeef28 /src/backend/utils/cache/relcache.c
parentad14919ac901e9703d81a5bf8a6b608719c85b60 (diff)
downloadpostgresql-05d0f13f0701d84e4e6784da336aabcc2dfc8ade.tar.gz
postgresql-05d0f13f0701d84e4e6784da336aabcc2dfc8ade.zip
Skip setting up shared instrumentation for Hash node if not needed.
We don't need to set up the shared space for hash join instrumentation data if instrumentation hasn't been requested. Let's follow the example of the similar Sort node code and save a few cycles by skipping that when we can. This reverts commit d59ff4ab3 and instead allows us to use the safer choice of passing noError = false to shm_toc_lookup in ExecHashInitializeWorker, since if we reach that call there should be a TOC entry to be found. Thomas Munro Discussion: https://postgr.es/m/E1ehkoZ-0005uW-43%40gemulon.postgresql.org
Diffstat (limited to 'src/backend/utils/cache/relcache.c')
0 files changed, 0 insertions, 0 deletions