postgresql/contrib/test_decoding
Michael Paquier 56a7147213 Block replication slot advance for these not yet reserving WAL
Such replication slots are physical slots freshly created without WAL
being reserved, which is the default behavior, which have not been used
yet as WAL consumption resources to retain WAL.  This prevents advancing
a slot to a position older than any WAL available, which could falsify
calculations for WAL segment recycling.

This also cleans up a bit the code, as ReplicationSlotRelease() would be
called on ERROR, and improves error messages.

Reported-by: Kyotaro Horiguchi
Author: Michael Paquier
Reviewed-by: Andres Freund, Álvaro Herrera, Kyotaro Horiguchi
Discussion: https://postgr.es/m/20180626071305.GH31353@paquier.xyz
2018-07-11 08:56:24 +09:00
..
expected Block replication slot advance for these not yet reserving WAL 2018-07-11 08:56:24 +09:00
specs Reduce cost of test_decoding's new oldest_xmin test 2018-07-05 16:37:32 -04:00
sql Block replication slot advance for these not yet reserving WAL 2018-07-11 08:56:24 +09:00
.gitignore Improve isolation tests infrastructure. 2017-03-14 15:56:17 -07:00
Makefile Fix "base" snapshot handling in logical decoding 2018-06-26 16:48:10 -04:00
logical.conf Introduce logical decoding. 2014-03-03 16:32:18 -05:00
test_decoding.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00