pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: pisarenco.a@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15718: DROP TABLE fails if it's partitioned by a key of a deleted enum
Date: Thu, 28 Mar 2019 14:04:13 -0300
Message-ID: <20190328170413.GA23764@alvherre.pgsql> (raw)
In-Reply-To: <15718-4484a0cd9cfb2b80@postgresql.org>

On 2019-Mar-28, PG Bug reporting form wrote:

> Code to replicate the issue:
> https://pastebin.com/rc8q35Qj

Please paste the code in the email.  We don't like external references.

> This happened to our ETL processes that re-create the staging data on each
> run. Enums are defining partition keys for some tables, that then flow into
> tables in another schema. When the schema containing that enum gets dropped,
> the columns that use it are also dropped.

Sounds like we're forgetting to add a dependency on the datatype of the
partition key.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (3+ messages)  latest in thread

Message-ID: <20190328170413.GA23764@alvherre.pgsql>
Permalink:  ../20190328170413.GA23764@alvherre.pgsql/
Also on:    postgresql.org/message-id/20190328170413.GA23764@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@2ndquadrant.com, pisarenco.a@gmail.com
  Subject: Re: BUG #15718: DROP TABLE fails if it's partitioned by a key of a deleted enum
  In-Reply-To: <20190328170413.GA23764@alvherre.pgsql>
  References: <15718-4484a0cd9cfb2b80@postgresql.org> <20190328170413.GA23764@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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