Re: Cannot dump foreign key constraints on partitioned table

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: amul sul <sulamul(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Cannot dump foreign key constraints on partitioned table
Date: 2018-07-12 17:15:41
Message-ID: 20180712171541.jmodar5xoalz6iug@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2018-Jul-12, Michael Paquier wrote:

> On Wed, Jul 11, 2018 at 03:49:59PM +0530, amul sul wrote:
> > On the master head, getConstraints() function skips FK constraints for
> > a partitioned table because of tbinfo->hastriggers is false.
> >
> > While creating FK constraints on the partitioned table, the FK triggers are only
> > created on leaf partitions and skipped for the partitioned tables.
>
> Oops. Good catch.

Looking at it now.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Christophe Pettus 2018-07-12 17:20:06 requested timeline ... does not contain minimum recovery point ...
Previous Message Andrey Borodin 2018-07-12 17:07:00 Re: GiST VACUUM