From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "D(dot) Hageman" <dhageman(at)dracken(dot)com>, <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Fix for psql core dumping on bad user |
Date: | 2001-04-18 16:48:31 |
Message-ID: | Pine.LNX.4.30.0104181833040.762-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Tom Lane writes:
> $ 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?
The comment is not correct. Failure in do_connect() in non-interactive
mode terminates the script. In the case of -f the program terminates
implicitly, but in case of \i you would return to the prompt (or the
containing \i).
--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Seidel | 2001-04-18 16:57:22 | theory of distributed transactions / timeouts |
Previous Message | D. Hageman | 2001-04-18 16:40:15 | Re: Fix for psql core dumping on bad user |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2001-04-18 17:22:08 | Re: [PATCHES] Fix for psql core dumping on bad user |
Previous Message | D. Hageman | 2001-04-18 16:40:15 | Re: Fix for psql core dumping on bad user |