pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Raise error on concurrent drop of partitioned index 4+ messages / 1 participants [nested] [flat]
* pgsql: Raise error on concurrent drop of partitioned index @ 2020-09-01 17:42 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 4+ messages in thread From: Alvaro Herrera @ 2020-09-01 17:42 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f00f5e0c1129a3b3a2140df42f11ede934bb619f Modified Files -------------- doc/src/sgml/ref/drop_index.sgml | 2 ++ src/backend/commands/tablecmds.c | 11 +++++++++++ src/test/regress/expected/indexing.out | 20 ++++++++++++++++++++ src/test/regress/sql/indexing.sql | 13 +++++++++++++ 4 files changed, 46 insertions(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Raise error on concurrent drop of partitioned index @ 2020-09-01 17:42 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 4+ messages in thread From: Alvaro Herrera @ 2020-09-01 17:42 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/afc7e0ad556a4f720c466cb4815fc77d310fc50a Modified Files -------------- doc/src/sgml/ref/drop_index.sgml | 2 ++ src/backend/commands/tablecmds.c | 11 +++++++++++ src/test/regress/expected/indexing.out | 20 ++++++++++++++++++++ src/test/regress/sql/indexing.sql | 13 +++++++++++++ 4 files changed, 46 insertions(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Raise error on concurrent drop of partitioned index @ 2020-09-01 17:42 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 4+ messages in thread From: Alvaro Herrera @ 2020-09-01 17:42 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/15dad5776578e884ee7857abb278a116c0c3e578 Modified Files -------------- doc/src/sgml/ref/drop_index.sgml | 2 ++ src/backend/commands/tablecmds.c | 11 +++++++++++ src/test/regress/expected/indexing.out | 20 ++++++++++++++++++++ src/test/regress/sql/indexing.sql | 13 +++++++++++++ 4 files changed, 46 insertions(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Raise error on concurrent drop of partitioned index @ 2020-09-01 17:42 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 4+ messages in thread From: Alvaro Herrera @ 2020-09-01 17:42 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/7067ba1b4b905046819368e787809c5df0ebef04 Modified Files -------------- doc/src/sgml/ref/drop_index.sgml | 2 ++ src/backend/commands/tablecmds.c | 11 +++++++++++ src/test/regress/expected/indexing.out | 20 ++++++++++++++++++++ src/test/regress/sql/indexing.sql | 13 +++++++++++++ 4 files changed, 46 insertions(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2020-09-01 17:42 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-09-01 17:42 pgsql: Raise error on concurrent drop of partitioned index Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-09-01 17:42 pgsql: Raise error on concurrent drop of partitioned index Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-09-01 17:42 pgsql: Raise error on concurrent drop of partitioned index Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-09-01 17:42 pgsql: Raise error on concurrent drop of partitioned index Alvaro Herrera <alvherre@alvh.no-ip.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox