Re: psql scripting tutorials - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: psql scripting tutorials
Date
Msg-id 20080911155515.GF9492@alvh.no-ip.org
Whole thread Raw
In response to Re: psql scripting tutorials  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: psql scripting tutorials  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general
Peter Eisentraut escribió:

> psql manual page:
>
>    -c command
>
>    --command command
>           Specifies that psql is to execute one command string, command,
>           and then exit. This is useful in shell scripts.
>
>           command must be either a command string that is completely
>           parsable by the server (i.e., it  contains no psql specific
>           features), or a single backslash command. Thus you cannot mix
>           SQL and psql meta-commands with this option.

Doesn't say about variable expansion ...  And it seems to be in a
different realm, because the point is that the command is going to have
a single destination (either \-processing or sending it to the server).

Is psql being just lazy here and avoiding parsing the command?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: declare column update expression
Next
From: "Scott Marlowe"
Date:
Subject: Re: declare column update expression