public inbox for [email protected]
help / color / mirror / Atom feedFrom: Jayadevan M <[email protected]>
To: [email protected] <[email protected]>
Subject: PostgreSQL logical replication
Date: Tue, 12 Nov 2024 16:16:21 +0530
Message-ID: <CAFS1N4jSe=o=F=ezqD+rDgcndj5o_13S-b-gNWojTnVfaKGdTQ@mail.gmail.com> (raw)
Hello all,
I am using PostgreSQL 16.4. I tried to set up logical replication with
"postgres" user and all worked fine. Then I created a new user
(my_replication) to be used for the purpose and couldn't figure out which
privileges are necessary. Initially I got an error like "ERROR: permission
denied for database mydb" . So I used GRANT CREATE ON DATABASE..and that
error disappeared. I have also executed...
ALTER USER my_replication WITH replication;
GRANT usage ON SCHEMA public TO my_replication;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO my_replication;
When I try
CREATE PUBLICATION my_publication for table public.term;
I am getting an error
ERROR: must be owner of table term
What privileges should be granted so that I can do
CREATE PUBLICATION my_publication FOR TABLES IN SCHEMA public;
Regards,
Jayadevan
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: PostgreSQL logical replication
In-Reply-To: <CAFS1N4jSe=o=F=ezqD+rDgcndj5o_13S-b-gNWojTnVfaKGdTQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox