Re: partitioned tables referenced by FKs

Alvaro Herrera <alvherre@2ndquadrant.com>

From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2019-03-26T23:27:33Z
Lists: pgsql-hackers

Attachments

On 2019-Mar-26, Alvaro Herrera wrote:

> Thanks for the thorough testing and bug analysis!  It was spot-on.  I've
> applied your two proposed fixes, as well as added a new test setup that
> covers both these bugs.  The attached set is rebased on 7c366ac969ce.

Attached is rebased on 126d63122232.  No further changes.

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

Commits

  1. Support foreign keys that reference partitioned tables

  2. Fix partitioned index creation bug with dropped columns

  3. Improve psql's \d display of foreign key constraints

  4. Fix dependency recording bug for partitioned PKs

  5. Add index_get_partition convenience function

  6. Restore RI trigger sanity check

  7. Foreign keys on partitioned tables