aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeSort.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2018-06-22 15:12:53 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2018-06-22 16:45:48 -0400
commit475be5e790e2db4c5c18a2d378c4498ffccb6289 (patch)
treefdb4e794350c714d72b9153808cb1af4109009a1 /src/backend/executor/nodeSort.c
parentc6f28af5d7af87d7370e5f169251d91437f100a2 (diff)
downloadpostgresql-475be5e790e2db4c5c18a2d378c4498ffccb6289.tar.gz
postgresql-475be5e790e2db4c5c18a2d378c4498ffccb6289.zip
When index recurses to a partition, map columns numbers
Two out of three code paths were mapping column numbers correctly if a partition had different column numbers than parent table, but the most commonly used one (recursing in CREATE INDEX to a new index on a partition) failed to map attribute numbers in expressions. Oddly enough, attnums in WHERE clauses are already handled correctly everywhere. Reported-by: Amit Langote Author: Amit Langote Discussion: https://postgr.es/m/dce1fda4-e0f0-94c9-6abb-f5956a98c057@lab.ntt.co.jp Reviewed-by: Álvaro Herrera
Diffstat (limited to 'src/backend/executor/nodeSort.c')
0 files changed, 0 insertions, 0 deletions