pgsql: Don't build full initial logical decoding snapshot if NOEXPORT_S

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't build full initial logical decoding snapshot if NOEXPORT_S
Date: 2017-04-27 22:58:21
Message-ID: E1d3sMf-00018O-Hf@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Don't build full initial logical decoding snapshot if NOEXPORT_SNAPSHOT.

Earlier commits (56e19d938dd14 and 2bef06d5164) make it cheaper to
create a logical slot if not exporting the initial snapshot. If
NOEXPORT_SNAPSHOT is specified, we can skip the overhead, not just
when creating a slot via sql (which can't export snapshots). As
NOEXPORT_SNAPSHOT has only recently been introduced, this shouldn't be
backpatched.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ab9c43381ef7a7333086107847413e0b593854d0

Modified Files
--------------
src/backend/replication/walsender.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2017-04-28 00:14:58 pgsql: Remove unnecessairly duplicated gram.y productions
Previous Message Andres Freund 2017-04-27 22:48:39 pgsql: Don't use on-disk snapshots for exported logical decoding snapsh