Re: [HACKERS] pg_dump ignoring information_schema tables which usedin Create Publication.

Поиск
Список
Период
Сортировка
От Kuntal Ghosh
Тема Re: [HACKERS] pg_dump ignoring information_schema tables which usedin Create Publication.
Дата
Msg-id CAGz5QCJ1h9pmdzYkcQzEC80uzBamNRTFmX14Ngi_M8JC3xk8ag@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] pg_dump ignoring information_schema tables which usedin Create Publication.  (tushar <tushar.ahuja@enterprisedb.com>)
Список pgsql-hackers
On Mon, May 22, 2017 at 5:22 PM, tushar <tushar.ahuja@enterprisedb.com> wrote:
> On 05/22/2017 05:12 PM, Kuntal Ghosh wrote:
>>
>> pg_dump ignores anything created under object name "pg_*" or
>> "information_schema".
>
> In this below scenario  , I am able to see - pg_dump catch the information
> of table which is created under information_schema
>
> --
> -- Name: e1; Type: VIEW; Schema: public; Owner: centos
> --
>
> CREATE VIEW e1 AS
>  SELECT abc.n
>    FROM information_schema.abc;
> ============================
>
The view is created in public schema. Hence, you're able to take a
dump for the same. However, you'll probably get an error saying
"relation information_schema.abc doesn't exist" while restoring the
dump.

For publications, the create definition(CREATE PUBLICATION) and
addition of tables(ALTER publication ADD TABLE) are separated. Hence,
it can skip all the relations created under information_schema or
anything under "pg_*" schema.

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



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

Предыдущее
От: tushar
Дата:
Сообщение: Re: [HACKERS] pg_dump ignoring information_schema tables which usedin Create Publication.
Следующее
От: Neha Khatri
Дата:
Сообщение: [HACKERS] wal_level > WAL_LEVEL_LOGICAL