diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-09-01 13:40:43 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-09-01 13:40:43 -0400 |
commit | 15dad5776578e884ee7857abb278a116c0c3e578 (patch) | |
tree | 37b5509a8a6c571e955d0c141c6c356270f8b74f /src/backend/executor/nodeSort.c | |
parent | 4178b749963cbf28d438b81e38dedcf885ccdda3 (diff) | |
download | postgresql-15dad5776578e884ee7857abb278a116c0c3e578.tar.gz postgresql-15dad5776578e884ee7857abb278a116c0c3e578.zip |
Raise error on concurrent drop of partitioned index
We were already raising an error for DROP INDEX CONCURRENTLY on a
partitioned table, albeit a different and confusing one:
ERROR: DROP INDEX CONCURRENTLY must be first action in transaction
Change that to throw a more comprehensible error:
ERROR: cannot drop partitioned index \"%s\" concurrently
Michael Paquier authored the test case for indexes on temporary
partitioned tables.
Backpatch to 11, where indexes on partitioned tables were added.
Reported-by: Jan Mussler <jan.mussler@zalando.de>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/16594-d2956ca909585067@postgresql.org
Diffstat (limited to 'src/backend/executor/nodeSort.c')
0 files changed, 0 insertions, 0 deletions