pgsql: Improve handling of pthread_mutex_lock error case

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve handling of pthread_mutex_lock error case
Date: 2013-08-01 19:44:18
Message-ID: E1V4ynK-0002Hf-Ms@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve handling of pthread_mutex_lock error case

We should really be reporting a useful error along with returning
a valid return code if pthread_mutex_lock() throws an error for
some reason. Add that and back-patch to 9.0 as the prior patch.

Pointed out by Alvaro Herrera

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f019c021119c632da396894769349fa6433e91da

Modified Files
--------------
src/interfaces/libpq/fe-secure.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2013-08-02 04:20:15 No more need for pg_clearxlogtail?
Previous Message Kevin Grittner 2013-08-01 19:36:17 pgsql: Improve comments for IncrementalMaintenance DML enabling functio