Re: Regarding: Replication of TRUNCATE commands is not working

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Arvind Raghuwanshi <arvindcs28(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Regarding: Replication of TRUNCATE commands is not working
Date: 2024-04-09 10:38:09
Message-ID: ab7838d3585241284c2991e62c1e6efc2d4b876c.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2024-04-09 at 14:50 +0530, Arvind Raghuwanshi wrote:
> I have tried to run the TRUNCATE command  and found out that it's not getting replicated using logical replication for pgsql.
> I have also checked the schema change using pg_dump command but the schema change also not getting detected for TRUNCATE command.
>
> However on pgsql logical replication doc page[1] , it's mentioned that Replication of TRUNCATE commands is supported.
>
> [1] PostgreSQL: Documentation: 16: 31.6. Restrictions
>
> Any idea how we can solve this?

What PostgreSQL version are you using? The feature was introduced in v11.
How exactly is the publication defined? Perhaps TRUNCATE is excluded.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Arvind Raghuwanshi 2024-04-09 12:07:01 Re: Regarding: Replication of TRUNCATE commands is not working
Previous Message Laurenz Albe 2024-04-09 10:36:08 Re: Postgres_FDW doc doesn't specify TYPE support in Remote Execution Options