aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-10-13 17:51:55 +0900
committerMichael Paquier <michael@paquier.xyz>2019-10-13 17:51:55 +0900
commit1df5875d39383b3981b804666ee1f4b0ff65943f (patch)
tree31c9906bd1ffa5488c899027dd0f9154d6137d81 /src/backend/access/gist
parentb4675a8ae2d0aaafeb136c46c92bb56eaf018d32 (diff)
downloadpostgresql-1df5875d39383b3981b804666ee1f4b0ff65943f.tar.gz
postgresql-1df5875d39383b3981b804666ee1f4b0ff65943f.zip
Fix dependency handling of column drop with partitioned tables
When dropping a column on a partitioned table which has one or more partitioned indexes, the operation was failing as dependencies with partitioned indexes using the column dropped were not getting removed in a way consistent with the columns involved across all the relations part of an inheritance tree. This commit refactors the code executing column drop so as all the columns from an inheritance tree to remove are gathered first, and dropped all at the end. This way, we let the dependency machinery sort out by itself the deletion of all the columns with the partitioned indexes across a partition tree. This issue has been introduced by 1d92a0c, so backpatch down to REL_12_STABLE. Author: Amit Langote, Michael Paquier Reviewed-by: Álvaro Herrera, Ashutosh Sharma Discussion: https://postgr.es/m/CA+HiwqE9kuBsZ3b5pob2-cvE8ofzPWs-og+g8bKKGnu6b4-yTQ@mail.gmail.com Backpatch-through: 12
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions