pgsql: Detach constraints when partitions are detached

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Detach constraints when partitions are detached
Date: 2019-01-24 03:02:49
Message-ID: E1gmVI1-00071l-SO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Detach constraints when partitions are detached

I (Álvaro) forgot to do this in eb7ed3f30634, leading to undroppable
constraints after partitions are detached. Repair.

Reported-by: Amit Langote
Author: Amit Langote
Discussion: https://postgr.es/m/c1c9b688-b886-84f7-4048-1e4ebe9b1d06@lab.ntt.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ae366aa57762ad0e6a1a0885a7644e79541afe39

Modified Files
--------------
src/backend/commands/tablecmds.c | 18 ++++++++++++++++++
src/test/regress/expected/indexing.out | 15 +++++++++++++++
src/test/regress/sql/indexing.sql | 14 ++++++++++++++
3 files changed, 47 insertions(+)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-01-24 03:47:34 pgsql: Blind attempt to fix _configthreadlocale() failures on MinGW.
Previous Message Michael Paquier 2019-01-23 23:01:00 pgsql: Remove argument isprimary from index_build()

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2019-01-24 03:03:13 Re: inherited primary key misbehavior
Previous Message Tom Lane 2019-01-24 02:39:18 Re: Allowing extensions to supply operator-/function-specific info