aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeSort.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-04-06 11:44:23 +0900
committerMichael Paquier <michael@paquier.xyz>2020-04-06 11:44:23 +0900
commit8ef9451f58ee92d1cdb910e72010dbe75e76f9b8 (patch)
tree0139670b79fed18fe65e33ec94dde4bd6f525f8b /src/backend/executor/nodeSort.c
parent33e05f89c53e5a1533d624046bb6fb0da7bb7141 (diff)
downloadpostgresql-8ef9451f58ee92d1cdb910e72010dbe75e76f9b8.tar.gz
postgresql-8ef9451f58ee92d1cdb910e72010dbe75e76f9b8.zip
Refactor cluster.c to use new routine get_index_isclustered()
This new cache lookup routine has been introduced in a40caf5, and more code paths can directly use it. Note that in cluster_rel(), the code was returning immediately if the tuple's entry in pg_index for the clustered index was not valid. This commit changes the code so as a lookup error is raised instead, something that could not happen from the start as we check for the existence of the index beforehand, while holding an exclusive lock on the parent table. Author: Justin Pryzby Reviewed-by: Álvaro Herrera, Michael Paquier Discussion: https://postgr.es/m/20200202161718.GI13621@telsasoft.com
Diffstat (limited to 'src/backend/executor/nodeSort.c')
0 files changed, 0 insertions, 0 deletions