Re: Logical replication and inheritance - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Logical replication and inheritance
Date
Msg-id 0435c691-367a-292f-7bd7-84d7cd2970cc@2ndquadrant.com
Whole thread Raw
In response to Re: [HACKERS] Logical replication and inheritance  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
List pgsql-hackers
After thinking about it some more, I think the behavior we want would be
that changes to inheritance would reflect in the publication membership.So if you have a partitioned table, adding more
partitionsover time
 
would automatically add them to the publication.

We could implement this either by updating pg_publication_rel as
inheritance changes, or perhaps more easily by checking and expanding
inheritance in the output plugin/walsender.  There might be subtle
behavioral differences between those two approaches that we should think
through.  But I think one of these two should be done.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Ronan Dunklau
Date:
Subject: Re: [Proposal] Make the optimiser aware of partitions ordering
Next
From: Vitaly Burovoy
Date:
Subject: Re: identity columns