Обсуждение: pgsql: Don't dump core if pq_comm_reset() is called before pq_init().

Поиск
Список
Период
Сортировка

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

От
Robert Haas
Дата:
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(-)