Re: [PATCH] Make "psql -1 < file.sql" work as with "-f"
От | Peter Eisentraut |
---|---|
Тема | Re: [PATCH] Make "psql -1 < file.sql" work as with "-f" |
Дата | |
Msg-id | 518CFB3F.1040409@gmx.net обсуждение исходный текст |
Ответ на | Re: [PATCH] Make "psql -1 < file.sql" work as with "-f" (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: [PATCH] Make "psql -1 < file.sql" work as with "-f"
Re: [PATCH] Make "psql -1 < file.sql" work as with "-f" Re: [PATCH] Make "psql -1 < file.sql" work as with "-f" |
Список | pgsql-hackers |
On 8/9/12 9:08 AM, Robert Haas wrote: > On Wed, Aug 8, 2012 at 6:50 PM, David Fetter <david@fetter.org> wrote: >>> I'm wondering if perhaps -- in addition to what you've done here -- we >>> should make "psql -1" error out if reading from a terminal. >> >> +1 for this. > > OK, done. > > I had to revise the original patch pretty heavily before committing; My first use of 9.3beta1 in development failed because of changes introduced by this patch, specifically because of the newly introduced error psql: -1 is incompatible with -c and -l I'm not convinced this is correct. -c and -l are single-transaction actions almost by definition. This particular aspect of the change wasn't really brought up in the original thread. What was your thinking?
В списке pgsql-hackers по дате отправления: