Filter:

Commits in January 2010

Commits17 commits
0Author
17Committer
0Reviewer
0Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
CommitterDetect early deadlock in Hot Standby when Startup is already waiting. First stage of required deadlock detection to allow re-enabling max_standby_delay setting of -1, which is now essential in the absence of improved relation- specific conflict resoluton. Requested by Greg Stark et al.
c85c9414
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 31, 2010
CommitterAdjust GetLockConflicts() so that it uses TopMemoryContext when executed InHotStandby. Cleaner solution than using malloc or palloc depending upon situation, as proposed by Tom.
29eedd31
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 29, 2010
CommitterAugment WAL records for btree delete with GetOldestXmin() to reduce false positives during Hot Standby conflict processing. Simple patch to enhance conflict processing, following previous discussions. Controlled by parameter minimize_standby_conflicts = on | off, with default off allows measurement of performance impact to see whether it should be set on all the time.
6d2bc0a6
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 29, 2010
CommitterFilter recovery conflicts based upon dboid from relfilenode of WAL records for heap and btree. Minor change, mostly API changes to pass through the required values. This is a simple change though also provides the refactoring required for further enhancements to conflict processing using the relOid. Changes only have effect during Hot Standby.
76be0c81
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 29, 2010
CommitterUse malloc() in GetLockConflicts() when called InHotStandby to avoid repeated palloc calls. Current code assumed this was already true, so this is a bug fix.
bcd8528f
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 28, 2010
CommitterFix longstanding gripe that we check for 0000000001.history at start of archive recovery, even when we know it is never present.
aed1a012
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 26, 2010
CommitterAdd explanatory detail to Hot Standby cancelation error messages with errdetail(). Add errhint() to suggest retry in certain cases.
a06ea6f5
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 23, 2010
CommitterIn HS, Startup process sets SIGALRM when waiting for buffer pin. If woken by alarm we send SIGUSR1 to all backends requesting that they check to see if they are blocking Startup process. If so, they throw ERROR/FATAL as for other conflict resolutions. Deadlock stop gap removed. max_standby_delay = -1 option removed to prevent deadlock.
959ac58c
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 23, 2010
CommitterAdd missing flag reset to ensure subsequent manual cancelation gives correct reason.
ed1d3f5e
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 21, 2010
CommitterBetter internal documentation of locking for Hot Standby conflict resolution. Discuss the reasons for the lock type we hold on ProcArrayLock while deriving the conflict list. Cover the idea of false positive conflicts and seemingly strange effects on snapshot derivation.
58565d78
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 21, 2010
CommitterLock database while running drop database in Hot Standby to protect against concurrent reconnection. Failure during testing showed issue was possible, even though earlier analysis seemed to indicate it would not be required. Use LockSharedObjectForSession() before ResolveRecoveryConflictWithDatabase() and hold lock until end of processing for that WAL record. Simple approach to avoid introducing further bugs at this stage of development on an improbable issue.
8bfd1a88
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 16, 2010
CommitterMessage mentions msec when it should be seconds, so use s instead of ms.
2edc31c4
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 16, 2010
CommitterTeach standby conflict resolution to use SIGUSR1 Conflict reason is passed through directly to the backend, so we can take decisions about the effect of the conflict based upon the local state. No specific changes, as yet, though this prepares for later work. CancelVirtualTransaction() sends signals while holding ProcArrayLock. Introduce errdetail_abort() to give message detail explaining that the abort was caused by conflict processing. Remove CONFLICT_MODE states in favour of using PROCSIG_RECOVERY_CONFLICT states directly, for clarity.
a8ce974c
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 16, 2010
CommitterFirst part of refactoring of code for ResolveRecoveryConflict. Purposes of this are to centralise the conflict code to allow further change, as well as to allow passing through the full reason for the conflict through to the conflicting backends. Backend state alters how we can handle different types of conflict so this is now required. As originally suggested by Heikki, no longer optional.
e99767bc
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 14, 2010
CommitterDocs for behaviour change of drop database during Hot Standby
f537e7df
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 10, 2010
CommitterDuring Hot Standby, fix drop database when sessions idle. Previously we only cancelled sessions that were in-transaction.
3bfcccc2
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 10, 2010
CommitterDuring Hot Standby, set DatabasePath correctly during relcache init file deletion, so that we attempt to unlink the correct filepath. unlink() errors are ignorable there, so lack of a DatabasePath initialization step did not cause visible problems until a related bug showed up on Solaris.
42edbd16
master9.0alpha4REL_19_STABLE9.0alpha4REL_18_STABLE9.0alpha4REL_17_STABLE9.0alpha4REL_16_STABLE9.0alpha4REL_15_STABLE9.0alpha4REL_14_STABLE9.0alpha4REL_13_STABLE9.0alpha4+12 more
No linked threadJan 09, 2010