Need help in logical replication

Started by Divyansh Gupta JNsThMAudyabout 1 year ago4 messagesgeneral
Jump to latest
#1Divyansh Gupta JNsThMAudy
ag1567827@gmail.com

Hii PostgreSQL Community,

I am setting up logical replication between two clusters in the same subnet
group. I’ve created a publication on the primary and a subscription on the
secondary, and the replication slot has been created. However, the slot
remains inactive, and changes aren’t being applied on the subscriber.

I am using AWS RDS for that

Could you please help me identify the possible cause and resolution for
this issue?

Thank you in advance!

[image: image.png]
[image: image.png]

CREATE PUBLICATION logical_replication_test

FOR TABLE dbo.logical_rep_test;

CREATE SUBSCRIPTION logical_replication_test_su

CONNECTION 'conn_strig'

PUBLICATION logical_replication_test;

Attachments:

image.pngimage/png; name=image.pngDownload+1-0
image.pngimage/png; name=image.pngDownload
#2Rob Sargent
robjsargent@gmail.com
In reply to: Divyansh Gupta JNsThMAudy (#1)
Re: Need help in logical replication

On Jan 13, 2025, at 5:30 AM, Divyansh Gupta JNsThMAudy <ag1567827@gmail.com> wrote:


Hii PostgreSQL Community,

I am setting up logical replication between two clusters in the same subnet group. I’ve created a publication on the primary and a subscription on the secondary, and the replication slot has been created. However, the slot remains inactive, and changes aren’t being applied on the subscriber.

I am using AWS RDS for that

Could you please help me identify the possible cause and resolution for this issue?

Thank you in advance!

Maybe you could send your ddl in plain text?

Show quoted text
#3Justin
zzzzz.graf@gmail.com
In reply to: Divyansh Gupta JNsThMAudy (#1)
Re: Need help in logical replication

Hi Divyansh,

Go to the subscriber and look for errors in the PostgreSQL logs.

When creating a subscription the default action is to sync the tables. Is
the subscriber table empty??

Thank you,

On Mon, Jan 13, 2025 at 7:30 AM Divyansh Gupta JNsThMAudy <
ag1567827@gmail.com> wrote:

Show quoted text

Hii PostgreSQL Community,

I am setting up logical replication between two clusters in the same
subnet group. I’ve created a publication on the primary and a subscription
on the secondary, and the replication slot has been created. However, the
slot remains inactive, and changes aren’t being applied on the subscriber.

I am using AWS RDS for that

Could you please help me identify the possible cause and resolution for
this issue?

Thank you in advance!

[image: image.png]
[image: image.png]

CREATE PUBLICATION logical_replication_test

FOR TABLE dbo.logical_rep_test;

CREATE SUBSCRIPTION logical_replication_test_su

CONNECTION 'conn_strig'

PUBLICATION logical_replication_test;

Attachments:

image.pngimage/png; name=image.pngDownload+1-0
image.pngimage/png; name=image.pngDownload
#4Divyansh Gupta JNsThMAudy
ag1567827@gmail.com
In reply to: Justin (#3)
Re: Need help in logical replication

Thank you for the response Justin found and fixed the error

On Mon, 13 Jan 2025, 10:15 pm Justin, <zzzzz.graf@gmail.com> wrote:

Show quoted text

Hi Divyansh,

Go to the subscriber and look for errors in the PostgreSQL logs.

When creating a subscription the default action is to sync the tables. Is
the subscriber table empty??

Thank you,

On Mon, Jan 13, 2025 at 7:30 AM Divyansh Gupta JNsThMAudy <
ag1567827@gmail.com> wrote:

Hii PostgreSQL Community,

I am setting up logical replication between two clusters in the same
subnet group. I’ve created a publication on the primary and a subscription
on the secondary, and the replication slot has been created. However, the
slot remains inactive, and changes aren’t being applied on the subscriber.

I am using AWS RDS for that

Could you please help me identify the possible cause and resolution for
this issue?

Thank you in advance!

[image: image.png]
[image: image.png]

CREATE PUBLICATION logical_replication_test

FOR TABLE dbo.logical_rep_test;

CREATE SUBSCRIPTION logical_replication_test_su

CONNECTION 'conn_strig'

PUBLICATION logical_replication_test;

Attachments:

image.pngimage/png; name=image.pngDownload+1-0
image.pngimage/png; name=image.pngDownload