Re: BUG #16330: psql accesses null pointer in connect.c:do_connect

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>, hghwng@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2020-03-31T13:43:36Z
Lists: pgsql-bugs
Michael Paquier <michael@paquier.xyz> writes:
> On Mon, Mar 30, 2020 at 12:48:51PM -0300, Alvaro Herrera wrote:
>> On 2020-Mar-30, Tom Lane wrote:
>>> I wonder if we should force reuse_previous to false if there's
>>> no o_conn, rather than fixing this stuff piecemeal.

>> That was my impression too.

> Good point.  What do you think about the attached then?

WFM.

			regards, tom lane



Commits

  1. Fix crash in psql when attempting to reuse old connection

  2. psql: Show IP address in \conninfo