Re: [HACKERS] Logical Replication WIP - Mailing list pgsql-hackers

From Steve Singer
Subject Re: [HACKERS] Logical Replication WIP
Date
Msg-id 5857F10D.5000509@ssinger.info
Whole thread Raw
In response to Re: [HACKERS] Logical Replication WIP  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
Responses Re: [HACKERS] Logical Replication WIP  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
List pgsql-hackers
On 12/18/2016 09:04 PM, Petr Jelinek wrote:
> On 18/12/16 19:02, Steve Singer wrote:
>
>> pg_dump is also generating warnings
>>
>> pg_dump: [archiver] WARNING: don't know how to set owner for object type
>> SUBSCRIPTION
>>
>> I know that the plan is to add proper ACL's for publications and
>> subscriptions later. I don't know if we want to leave the warning in
>> until then or do something about it.
>>
> No, ACLs are separate from owner. This is thinko on my side. I was
> thinking we can live without ALTER ... OWNER TO for now, but we actually
> need it for pg_dump and for REASSIGN OWNED. So now I added the OWNER TO
> for both PUBLICATION and SUBSCRIPTION.


When I try to restore my pg_dump with publications I get

./pg_dump  -h localhost --port 5440 test |./psql -h localhost --port 
5440 test2


ALTER TABLE
CREATE PUBLICATION
ERROR:  unexpected command tag "PUBLICATION

This comes from a
ALTER PUBLICATION mypub OWNER TO ssinger;


Does the OWNER TO  clause need to be added to AlterPublicationStmt: 
instead of AlterOwnerStmt ?
Also we should update the tab-complete for ALTER PUBLICATION to show the 
OWNER to options  + the \h help in psql and the reference SGML






pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: [HACKERS] Quorum commit for multiple synchronous replication.
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] postgres_fdw bug in 9.6