Re: [HACKERS] "create publication..all tables" ignore 'partition notsupported' error

Поиск
Список
Период
Сортировка
От Kuntal Ghosh
Тема Re: [HACKERS] "create publication..all tables" ignore 'partition notsupported' error
Дата
Msg-id CAGz5QCKV3_vy5iM9m0QhESe_VbyR2cz+k6XaKA2ZHyQLA_OmVA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] "create publication..all tables" ignore 'partition notsupported' error  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
On Thu, Jun 1, 2017 at 6:56 AM, Peter Eisentraut
<peter.eisentraut@2ndquadrant.com> wrote:
> On 5/31/17 02:17, Kuntal Ghosh wrote:
>> On Wed, May 31, 2017 at 12:58 AM, Masahiko Sawada <sawada.mshk@gmail.com> wrote:
>>>
>>> I'd say we can fix this issue by just changing the query. Attached
>>> patch changes the query so that it can handle publication name
>>> correctly, the query gets complex, though.
>>>
>> In is_publishable_class function, there are four conditions to decide
>> whether this is a publishable class or not.
>>
>> 1. relkind == RELKIND_RELATION
>> 2. IsCatalogClass()
>> 3. relpersistence == 'p'
>> 4. relid >= FirstNormalObjectId /* Skip tables created during initdb */
>>
>> I think the modified query should have a check for the fourth condition as well.
>
> The query should be fixed like in the attached patch.
> pg_get_publication_tables() ends up calling is_publishable_class()
> internally.
>
Works fine.



-- 
Thanks & Regards,
Kuntal Ghosh
EnterpriseDB: http://www.enterprisedb.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] TAP: allow overriding PostgresNode in get_new_node
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: [HACKERS] Error while creating subscription when server isrunning in single user mode