Re: Cannot dump foreign key constraints on partitioned table - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Cannot dump foreign key constraints on partitioned table
Date
Msg-id 20180712171541.jmodar5xoalz6iug@alvherre.pgsql
Whole thread Raw
In response to Re: Cannot dump foreign key constraints on partitioned table  (Michael Paquier <michael@paquier.xyz>)
List 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


pgsql-hackers by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: GiST VACUUM
Next
From: Christophe Pettus
Date:
Subject: requested timeline ... does not contain minimum recovery point ...