]> granicus.if.org Git - postgresql/commit
Don't build full initial logical decoding snapshot if NOEXPORT_SNAPSHOT.
authorAndres Freund <andres@anarazel.de>
Thu, 27 Apr 2017 22:49:22 +0000 (15:49 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 27 Apr 2017 22:52:31 +0000 (15:52 -0700)
commitab9c43381ef7a7333086107847413e0b593854d0
treeb807768ba4eb0197a1adad6821716308daf9ae26
parent56e19d938dd1457ae078304df1b9903509a0a2bf
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.
src/backend/replication/walsender.c