Re: [PATCH] Make "psql -1 < file.sql" work as with "-f" - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [PATCH] Make "psql -1 < file.sql" work as with "-f"
Date
Msg-id 518CFB3F.1040409@gmx.net
Whole thread Raw
In response to Re: [PATCH] Make "psql -1 < file.sql" work as with "-f"  (Robert Haas <robertmhaas@gmail.com>)
Responses 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"
List 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 by date:

Previous
From: carla celiberti
Date:
Subject: Re: Taking the "varattno" in "args" (where part of a query)
Next
From: Merlin Moncure
Date:
Subject: Re: Concurrent HOT Update interference