OSDN Git Service

Clean up some awkward, inaccurate, and inefficient processing around
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 2 May 2010 02:10:33 +0000 (02:10 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 2 May 2010 02:10:33 +0000 (02:10 +0000)
commitf9ed327f760e7794faecfda54b19515a95ba901d
tree6e986d2df98e547cc1d2aa44bf71376afada02ba
parent154163238e933988a9876aac88848258c2da7380
Clean up some awkward, inaccurate, and inefficient processing around
MaxStandbyDelay.  Use the GUC units mechanism for the value, and choose more
appropriate timestamp functions for performing tests with it.  Make the
ps_activity manipulation in ResolveRecoveryConflictWithVirtualXIDs have
behavior similar to ps_activity code elsewhere, notably not updating the
display when update_process_title is off and not truncating the display
contents at an arbitrarily-chosen length.  Improve the docs to be explicit
about what MaxStandbyDelay actually measures, viz the difference between
primary and standby servers' clocks, and the possible hazards if their clocks
aren't in sync.
doc/src/sgml/config.sgml
doc/src/sgml/high-availability.sgml
src/backend/access/transam/xlog.c
src/backend/storage/ipc/standby.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample