]> granicus.if.org Git - postgresql/commit
Add confirmed_flush column to pg_replication_slots.
authorAndres Freund <andres@anarazel.de>
Mon, 10 Aug 2015 11:28:18 +0000 (13:28 +0200)
committerAndres Freund <andres@anarazel.de>
Mon, 10 Aug 2015 11:28:18 +0000 (13:28 +0200)
commit3f811c2d6f51b13b71adff99e82894dd48cee055
treed2764ea2b530d2ebed4a16eccaff4e18f6ab5ebf
parent5c4b25accebb5d35358bb0c19b841d8d9b064e46
Add confirmed_flush column to pg_replication_slots.

There's no reason not to expose both restart_lsn and confirmed_flush
since they have rather distinct meanings. The former is the oldest WAL
still required and valid for both physical and logical slots, whereas
the latter is the location up to which a logical slot's consumer has
confirmed receiving data. Most of the time a slot will require older
WAL (i.e. restart_lsn) than the confirmed
position (i.e. confirmed_flush_lsn).

Author: Marko Tiikkaja, editorialized by me
Discussion: 559D110B.1020109@joh.to
contrib/test_decoding/expected/ddl.out
doc/src/sgml/catalogs.sgml
doc/src/sgml/high-availability.sgml
doc/src/sgml/logicaldecoding.sgml
src/backend/catalog/system_views.sql
src/backend/replication/slotfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/test/regress/expected/rules.out