Re: row filtering for logical replication
От | Euler Taveira |
---|---|
Тема | Re: row filtering for logical replication |
Дата | |
Msg-id | 52edc9d2-8e52-4cde-9a15-991961b78387@www.fastmail.com обсуждение исходный текст |
Ответ на | Re: row filtering for logical replication (japin <japinli@hotmail.com>) |
Список | pgsql-hackers |
On Tue, Feb 2, 2021, at 8:38 AM, japin wrote:
In 0003 patch, function GetPublicationRelationQuals() has been defined, but itnever used. So why should we define it?
Thanks for taking a look again. It is an oversight. It was introduced in an
attempt to refactor ALTER PUBLICATION SET TABLE. In AlterPublicationTables, we
could possibly keep some publication-table mappings that does not change,
however, since commit 3696a600e2, it is required to find the qual for all
inheritors (see GetPublicationRelations). I explain this decision in the
following comment:
/*
* Remove all publication-table mappings. We could possibly
* remove (i) tables that are not found in the new table list and
* (ii) tables that are being re-added with a different qual
* expression. For (ii), simply updating the existing tuple is not
* enough, because of qual expression dependencies.
*/
I will post a new patch set later.
В списке pgsql-hackers по дате отправления: