pgsql: Back-patch assorted latch-related fixes. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Back-patch assorted latch-related fixes.
Date
Msg-id E1QrBce-0003Ce-9k@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Oops, we're working on version 9.2 already, not 9.1. Update the
Next
From: Tom Lane
Date:
Subject: pgsql: Add a bit of debug logging to backend_read_statsfile().