pg_publication_tables show dropped columns - Mailing list pgsql-hackers

From Jaime Casanova
Subject pg_publication_tables show dropped columns
Date
Msg-id Yxa1SU4nH2HfN3/i@ahch-to
Whole thread Raw
Responses Re: pg_publication_tables show dropped columns
List pgsql-hackers
Hi everyone,

Just trying the new column/row filter on v15, I found this issue that
could be replicated very easily.

"""
postgres=# create table t1(i serial primary key);
CREATE TABLE
postgres=# alter table t1 drop i;
ALTER TABLE
postgres=# alter table t1 add id serial primary key;
ALTER TABLE
postgres=# create publication pub_t1 for table t1;
CREATE PUBLICATION

postgres=# select * from pg_publication_tables where pubname = 'pub_t1' \gx
-[ RECORD 1 ]---------------------------------
pubname    | pub_t1
schemaname | public
tablename  | t1
attnames   | {........pg.dropped.1........,id}
rowfilter  |
"""

This could be solved by adding a "NOT attisdropped", simple patch
attached.

-- 
Jaime Casanova
Director de Servicios Profesionales
SystemGuards - Consultores de PostgreSQL

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Modernizing our GUC infrastructure
Next
From: Junwang Zhao
Date:
Subject: Re: Modernizing our GUC infrastructure