Re: How to create logical replication slot with NOEXPORT_SNAPSHOT injdbc - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: How to create logical replication slot with NOEXPORT_SNAPSHOT injdbc
Date
Msg-id 2e397db3-823f-7608-ec98-dc235ccdd105@2ndquadrant.com
Whole thread Raw
In response to How to create logical replication slot with NOEXPORT_SNAPSHOT in jdbc  (Igor Polishchuk <ora4dba@gmail.com>)
List pgsql-general
On 17.07.18 03:41, Igor Polishchuk wrote:
> We are trying to use logical decoding for detecting database changes.
> However, when we create a replication slot, the data processing pauses
> if there are still transactions running from before the slot creation.
> If I understand correctly, the slot is waiting for creating a consistent
> snapshot and is blocked by the long transactions.
> In our application, we don't need it, as we only want to see if some
> tables were modified. Is it possible to create a  logical replication
> slot with  NOEXPORT_SNAPSHOT option using jdbc?

That doesn't do what you want.  You still need to wait for the snapshot
to be created; there is no way around that.  The NOEXPORT_SNAPSHOT
option just means that the snapshot, once created, won't be exported for
use by other sessions.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-general by date:

Previous
From: Fabio Pardi
Date:
Subject: Re: Query to monitor index bloat
Next
From: Peter Eisentraut
Date:
Subject: Re: User documentation vs Official Docs