Re: psql -1 -f - busted

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Stephen Frost <sfrost(at)snowman(dot)net>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: psql -1 -f - busted
Date: 2009-11-27 06:42:32
Message-ID: 1259304152.5478.0.camel@fsopti579.F-Secure.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On tor, 2009-11-26 at 22:59 -0500, Robert Haas wrote:
> ISTM that if you run psql with "-f -", you shouldn't expect to get an
> interactive shell. Rather, you should expect psql to do whatever it
> normally does when given -f somefilename, except using stdin rather
> than the file. After all, you could have left out -f altogether if
> you'd wanted the interactive behavior. But then IJWH.

But by that logic, psql < file should also set interactive mode.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Guillaume Smet 2009-11-27 07:11:33 Re: BUG #5216: pgFouine 1.1 not working correctly, when LC_MESSAGES is "es_ES.UTF-8"
Previous Message Robert Haas 2009-11-27 03:59:17 Re: psql -1 -f - busted