pgsql: Don't dump core if pq_comm_reset() is called before pq_init().

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't dump core if pq_comm_reset() is called before pq_init().
Date: 2014-12-05 00:53:04
Message-ID: E1Xwh8q-0006Ms-Nw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Don't dump core if pq_comm_reset() is called before pq_init().

This can happen if an error occurs in a standalone backend. This bug
was introduced by commit 2bd9e412f92bc6a68f3e8bcb18e04955cc35001d.

Reported by Álvaro Herrera.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9a946298338e4783fcc98e0896712fdf2b2bfd56

Modified Files
--------------
src/backend/libpq/pqcomm.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2014-12-05 00:53:23 Re: [COMMITTERS] pgsql: Support frontend-backend protocol communication using a shm_mq.
Previous Message Andres Freund 2014-12-04 22:55:45 pgsql: Document that pg_stat_*_tables.n_tup_upd includes n_tup_hot_upd.