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