postgresql/src/backend
Peter Eisentraut e3a815d2fa Improve handover logic between sync and apply workers
Make apply busy wait check the catalog instead of shmem state to ensure
that next transaction will see the expected table synchronization state.

Also make the handover always go through same set of steps to make the
overall process easier to understand and debug.

Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Tested-by: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Tested-by: Erik Rijkers <er@xs4all.nl>
2017-06-06 14:41:04 -04:00
..
access Prevent possibility of panics during shutdown checkpoint. 2017-06-05 19:18:15 -07:00
bootstrap Disallow CREATE INDEX if table is already in use in current session. 2017-06-04 12:02:41 -04:00
catalog Clean up partcollation handling for OID 0. 2017-06-06 11:07:20 -04:00
commands Fix ALTER SUBSCRIPTION grammar ambiguity 2017-06-05 21:43:25 -04:00
executor Don't be so trusting that shm_toc_lookup() will always succeed. 2017-06-05 12:05:42 -04:00
foreign Abstract logic to allow for multiple kinds of child rels. 2017-04-03 22:41:31 -04:00
lib Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
libpq Abort authentication if the client selected an invalid SASL mechanism. 2017-05-25 08:50:47 -04:00
main Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
nodes Fix omission of locations in outfuncs/readfuncs partitioning node support. 2017-05-30 11:32:41 -04:00
optimizer #ifdef out assorted unused GEQO code. 2017-06-04 13:34:05 -04:00
parser Fix ALTER SUBSCRIPTION grammar ambiguity 2017-06-05 21:43:25 -04:00
po Translation updates 2017-05-15 12:19:54 -04:00
port Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
postmaster Revert "Prevent panic during shutdown checkpoint" 2017-06-05 19:18:15 -07:00
regex Fix regexport.c to behave sanely with lookaround constraints. 2017-04-13 17:18:35 -04:00
replication Improve handover logic between sync and apply workers 2017-06-06 14:41:04 -04:00
rewrite Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
snowball Add ICU_FLAGS to one more place 2017-03-23 16:53:10 -04:00
statistics Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
storage Prevent possibility of panics during shutdown checkpoint. 2017-06-05 19:18:15 -07:00
tcop Unify SIGHUP handling between normal and walsender backends. 2017-06-05 19:18:16 -07:00
tsearch Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
utils Use NIL rather than NULL to represent an empty list. 2017-06-06 11:21:22 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Implement multivariate n-distinct coefficients 2017-03-24 14:06:10 -03:00
common.mk ICU support 2017-03-23 15:28:48 -04:00
nls.mk Translation updates 2017-05-15 12:19:54 -04:00