Skip site navigation (1) Skip section navigation (2)

Re: Fix for psql core dumping on bad user

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "D(dot) Hageman" <dhageman(at)dracken(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: Fix for psql core dumping on bad user
Date: 2001-04-17 23:32:45
Message-ID: 7071.987550365@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
"D. Hageman" <dhageman(at)dracken(dot)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

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2001-04-18 00:13:47
Subject: Re: Re: timeout on lock feature
Previous:From: Rainer MagerDate: 2001-04-17 23:24:26
Subject: RE: [BUGS] Problem with 7.0.3 dump -> 7.1b4 restore

pgsql-patches by date

Next:From: D. HagemanDate: 2001-04-18 12:06:48
Subject: Re: Fix for psql core dumping on bad user
Previous:From: D. HagemanDate: 2001-04-17 22:39:13
Subject: Fix for psql core dumping on bad user

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group