[HACKERS] pg_dump ignoring information_schema tables which used in CreatePublication. - Mailing list pgsql-hackers

From tushar
Subject [HACKERS] pg_dump ignoring information_schema tables which used in CreatePublication.
Date
Msg-id 529a5378-9152-0056-b066-9ec6348b6a2f@enterprisedb.com
Whole thread Raw
Responses Re: [HACKERS] pg_dump ignoring information_schema tables which usedin Create Publication.
List pgsql-hackers
Hi,

pg_dump is ignoring tables which created under information_schema 
schema  for  CREATE PUBLICATION .

postgres=# create database  test;
CREATE DATABASE
postgres=# \c test
You are now connected to database "test" as user "centos".
test=# create table information_schema.abc(n int);
CREATE TABLE
test=# create publication test for table information_schema.abc;
CREATE PUBLICATION
test=# select * from pg_publication_tables; pubname |     schemaname     | tablename
---------+--------------------+----------- test    | information_schema | abc
(1 row)

test=# \q
[centos@centos-cpula regress]$ pg_dump -Fp  test > /tmp/a.a
[centos@centos-cpula regress]$ cat /tmp/a.a|grep publication -i
-- Name: test; Type: PUBLICATION; Schema: -; Owner: centos
CREATE PUBLICATION test WITH (publish = 'insert, update, delete');
ALTER PUBLICATION test OWNER TO centos;
[centos@centos-cpula regress]$

-- 
regards,tushar
EnterpriseDB  https://www.enterprisedb.com/
The Enterprise PostgreSQL Company




pgsql-hackers by date:

Previous
From: Sokolov Yura
Date:
Subject: [HACKERS] Seekable compressed TOAST [POC]
Next
From: Kuntal Ghosh
Date:
Subject: Re: [HACKERS] "create publication..all tables" ignore 'partition notsupported' error