Re: Synchronize the dump with a logical slot with --snapshot

From: Durgamahesh Manne <maheshpostgres9(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org, pgsql-in-general(at)postgresql(dot)org, Greg Sabino Mullane <htamfids(at)gmail(dot)com>, Koichi Suzuki <koichi(dot)dbms(at)gmail(dot)com>
Subject: Re: Synchronize the dump with a logical slot with --snapshot
Date: 2024-09-25 20:53:39
Message-ID: CAJCZkoLGxyNESVWD5uPwWcA=hye44LQ9=v4=TJDA0s-Rhd04jg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-in-general

Hi Team

--snapshot=snapshotname
(Use the specified synchronized snapshot when making a dump of the database

This option is useful when needing to synchronize the dump with a logical
replication slot) as per the pgdg

How do we synchronize the dump with a logical replication slot with
--snapshot?

I am using the postgresql 14 version which supports only
pg_create_logical_replication_slot. How to generate a internal snapshot
with it ?

Below CREATE_REPLICAION_SLOT not supported by postgresql 14

example osdb_lsr=# CREATE_REPLICATION_SLOT lsr_sync_01 LOGICAL pgoutput;
slot_name | consistent_point | snapshot_name | output_plugin
-------------+------------------+---------------------+---------------
lsr_sync_01 | 0/C000110 | 00000003-00000002-1 | pgoutput

Regards,

Durga Mahesh

On Fri, 20 Sept, 2024, 01:27 Durgamahesh Manne, <maheshpostgres9(at)gmail(dot)com>
wrote:

> Hi Team
>
> --snapshot=*snapshotname*
>
> (Use the specified synchronized snapshot when making a dump of the database
>
> This option is useful when needing to synchronize the dump with a logical
> replication slot) as per the pgdg
>
> How do we synchronize the dump with a logical replication slot
> with --snapshot?
>
> I am using the postgresql 14 version which supports only
> pg_create_logical_replication_slot. How to generate a snapshot with it ?
>
> Below CREATE_REPLICAION_SLOT not supported by postgresql 14
>
> example osdb_lsr=# CREATE_REPLICATION_SLOT lsr_sync_01 LOGICAL pgoutput;
> slot_name | consistent_point | snapshot_name | output_plugin
> -------------+------------------+---------------------+---------------
> lsr_sync_01 | 0/C000110 | 00000003-00000002-1 | pgoutput
>
> Regards,
>
> Durga Mahesh
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2024-09-25 21:16:19 Re: Repeatable Read Isolation Level "transaction start time"
Previous Message Christophe Pettus 2024-09-25 20:53:30 Re: Repeatable Read Isolation Level "transaction start time"

Browse pgsql-in-general by date

  From Date Subject
Next Message Durgamahesh Manne 2024-09-28 04:25:57 Regarding use of single column as primary key on partitioned table
Previous Message Durgamahesh Manne 2024-09-19 19:57:56 Synchronize the dump with a logical slot with --snapshot