pgsql: Teach standby conflict resolution to use SIGUSR1 Conflict reason

From: sriggs(at)postgresql(dot)org (Simon Riggs)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Teach standby conflict resolution to use SIGUSR1 Conflict reason
Date: 2010-01-16 10:06:03
Message-ID: 20100116100603.8DA747541BA@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Teach 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.

Modified Files:
--------------
pgsql/src/backend/access/transam:
xact.c (r1.280 -> r1.281)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xact.c?r1=1.280&r2=1.281)
pgsql/src/backend/storage/ipc:
procarray.c (r1.55 -> r1.56)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/procarray.c?r1=1.55&r2=1.56)
procsignal.c (r1.2 -> r1.3)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/procsignal.c?r1=1.2&r2=1.3)
standby.c (r1.4 -> r1.5)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/standby.c?r1=1.4&r2=1.5)
pgsql/src/backend/storage/lmgr:
proc.c (r1.212 -> r1.213)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/lmgr/proc.c?r1=1.212&r2=1.213)
pgsql/src/backend/tcop:
postgres.c (r1.582 -> r1.583)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tcop/postgres.c?r1=1.582&r2=1.583)
pgsql/src/include/storage:
proc.h (r1.117 -> r1.118)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/storage/proc.h?r1=1.117&r2=1.118)
procarray.h (r1.29 -> r1.30)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/storage/procarray.h?r1=1.29&r2=1.30)
procsignal.h (r1.2 -> r1.3)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/storage/procsignal.h?r1=1.2&r2=1.3)
standby.h (r1.3 -> r1.4)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/storage/standby.h?r1=1.3&r2=1.4)
pgsql/src/include/tcop:
tcopprot.h (r1.102 -> r1.103)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/tcop/tcopprot.h?r1=1.102&r2=1.103)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2010-01-16 10:13:04 pgsql: Message mentions msec when it should be seconds, so use s instead
Previous Message Tom Lane 2010-01-16 05:52:29 pgsql: Huh, apparently on cygwin we HAVE_SIGPROCMASK, so both variants