Re: Fix for psql core dumping on bad user - Mailing list pgsql-patches

From Tom Lane
Subject Re: Fix for psql core dumping on bad user
Date
Msg-id 7071.987550365@sss.pgh.pa.us
Whole thread Raw
In response to Fix for psql core dumping on bad user  ("D. Hageman" <dhageman@dracken.com>)
Responses Re: Fix for psql core dumping on bad user
Re: Fix for psql core dumping on bad user
List pgsql-patches
"D. Hageman" <dhageman@dracken.com> writes:
> The postgresql interactive terminal will dump core on any script that is
> run via the -f command line option if their exists a connect line without
> a valid user.

Curiously, I see no core dump here:

$ cat zscript
\connect - testuser
$ psql -f zscript regression
psql:zscript:1: \connect: FATAL 1:  user "testuser" does not exist
$

Nonetheless, the comment at the top of do_connect() says that it
*should* terminate the program under these circumstances, so I'm not
sure why it doesn't.  Peter?

            regards, tom lane

pgsql-patches by date:

Previous
From: "D. Hageman"
Date:
Subject: Fix for psql core dumping on bad user
Next
From: Peter T Mount
Date:
Subject: Re: Large Object problems (was Re: JDBC int8 hack)