Re: running logical replication as the subscription owner
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: Ajin Cherian <itsajin@gmail.com>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>,
Robert Haas <robertmhaas@gmail.com>, Noah Misch <noah@leadboat.com>, Jeff Davis <pgsql@j-davis.com>, Jelte Fennema <postgres@jeltef.nl>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>,
Andres Freund <andres@anarazel.de>
Date: 2023-05-16T06:36:08Z
Lists: pgsql-hackers
On Fri, May 12, 2023 at 5:25 PM Ajin Cherian <itsajin@gmail.com> wrote: > > On Fri, May 12, 2023 at 1:49 PM Amit Kapila <amit.kapila16@gmail.com> wrote: > > > > I tried the following test: > > ==================== > Repeat On the publisher and subscriber: > /* Create role regress_alice with NOSUPERUSER on > publisher and subscriber and a table for replication */ > > CREATE ROLE regress_alice NOSUPERUSER LOGIN; > CREATE ROLE regress_admin SUPERUSER LOGIN; > GRANT CREATE ON DATABASE postgres TO regress_alice; > SET SESSION AUTHORIZATION regress_alice; > CREATE SCHEMA alice; > GRANT USAGE ON SCHEMA alice TO regress_admin; > CREATE TABLE alice.test (i INTEGER); > ALTER TABLE alice.test REPLICA IDENTITY FULL; > Why do we need a schema and following grant statement for this test? > On the publisher: > postgres=> insert into alice.test values(1); > postgres=> insert into alice.test values(2); > postgres=> insert into alice.test values(3); > postgres=> CREATE PUBLICATION alice FOR TABLE alice.test > WITH (publish_via_partition_root = true); > Again, 'publish_via_partition_root' doesn't seem to be required. Let's try to write a minimal test for the initial sync behaviour. -- With Regards, Amit Kapila.
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Honor run_as_owner option in tablesync worker.
- a83edeaf684a 16.0 landed
-
Document new pg_subscription columns.
- bc25d6c54a00 16.0 landed
-
Add a run_as_owner option to subscriptions.
- 482675987bcd 16.0 landed
-
Perform logical replication actions as the table owner.
- 1e10d49b65d6 16.0 landed
-
Add new predefined role pg_create_subscription.
- c3afe8cf5a1e 16.0 cited
-
Respect permissions within logical replication.
- a2ab9c06ea15 15.0 cited
-
Empty search_path in logical replication apply worker and walsender.
- 11da97024abb 14.0 cited
-
Empty search_path in Autovacuum and non-psql/pgbench clients.
- 582edc369cdb 11.0 cited