Re: Fix for psql core dumping on bad user
| От | Tom Lane | 
|---|---|
| Тема | Re: Fix for psql core dumping on bad user | 
| Дата | |
| Msg-id | 7071.987550365@sss.pgh.pa.us обсуждение исходный текст | 
| Ответ на | Fix for psql core dumping on bad user ("D. Hageman" <dhageman@dracken.com>) | 
| Ответы | Re: Fix for psql core dumping on bad user Re: Fix for psql core dumping on bad user | 
| Список | 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 по дате отправления: