From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Back-patch assorted latch-related fixes. |
Date: | 2011-08-10 16:27:12 |
Message-ID: | E1QrBce-0003Ce-9k@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Back-patch assorted latch-related fixes.
Fix a whole bunch of signal handlers that had been hacked to do things that
might change errno, without adding the necessary save/restore logic for
errno. Also make some minor fixes in unix_latch.c, and clean up bizarre
and unsafe scheme for disowning the process's latch. While at it, rename
the PGPROC latch field to procLatch for consistency with 9.2.
Issues noted while reviewing a patch by Peter Geoghegan.
Branch
------
REL9_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/989f530d3f793ed1c990d705d0958bfd2a533b85
Modified Files
--------------
src/backend/access/transam/xlog.c | 16 +++++++++++
src/backend/port/unix_latch.c | 47 ++++++++++++++++++++++++++++-----
src/backend/replication/syncrep.c | 17 +++--------
src/backend/replication/walreceiver.c | 4 +++
src/backend/replication/walsender.c | 16 +++++++++++
src/backend/storage/lmgr/proc.c | 42 +++++++++++++++++++++-------
src/backend/tcop/postgres.c | 14 +++++----
src/include/replication/syncrep.h | 4 +-
src/include/storage/proc.h | 3 +-
9 files changed, 124 insertions(+), 39 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-08-10 20:46:02 | pgsql: Add a bit of debug logging to backend_read_statsfile(). |
Previous Message | Heikki Linnakangas | 2011-08-10 06:29:24 | pgsql: Oops, we're working on version 9.2 already, not 9.1. Update the |