Re: psql scripting tutorials

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Harald Fuchs <hari(dot)fuchs(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: psql scripting tutorials
Date: 2008-09-12 07:22:02
Message-ID: 48CA189A.1050006@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera wrote:
> 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?

The intent is to leave open an avenue to pass a command to the server
without any interference from psql at all. I have never been very
comfortable with overloading -c for that purpose, and it certainly
confuses users from time to time. But that's the idea anyway.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2008-09-12 13:27:27 Converting string to IN query
Previous Message Tomasz Ostrowski 2008-09-12 07:07:58 Re: Autocommit, isolation level, and vacuum behavior