Re: [SQL] bash & postgres - Mailing list pgsql-general

From Tom Lane
Subject Re: [SQL] bash & postgres
Date
Msg-id 1217.1237838113@sss.pgh.pa.us
Whole thread Raw
In response to Re: [SQL] bash & postgres  (Erik Jones <ejones@engineyard.com>)
List pgsql-general
Erik Jones <ejones@engineyard.com> writes:
> On Mar 23, 2009, at 7:05 AM, Tom Lane wrote:
>> The reason you have to do this is that psql doesn't recognize
>> backslash commands in a -c string.  There's a school of thought that
>> doesn't want us to allow multiple commands in a -c string, even.

> Hmm... Apparently it does recognize them as long as the backslash is
> the first character in the command string:

Hmm, maybe I was just misremembering the details.  What's certainly
true is that psql doesn't run a -c string through the same extensive
parsing that data from stdin gets.

            regards, tom lane

pgsql-general by date:

Previous
From: M L
Date:
Subject: Re: The tuple structure of a not-yet-assigned record is indeterminate.
Next
From: Jacek Becla
Date:
Subject: unexpected check constraint violation