Re: Proposal: USING clause for DO statement - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Proposal: USING clause for DO statement
Date
Msg-id 4B084B17.10107@dunslane.net
Whole thread Raw
In response to Re: Proposal: USING clause for DO statement  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

Tom Lane wrote:
> In any case I don't think that "getting stuff from
> psql variables into a DO script" is the way to define the problem.
> It's "getting stuff from shell variables into a DO script" that is the
> real-world problem. 

Indeed. But setting psql variables from the command line is easy. We 
have a nifty switch for it. So we could reduce one problem to the other.

>  Maybe psql is the wrong tool altogether.
>
>             
>   

Yeah. The workaround is to use some sort of wrapper, in shell script, 
perl or whatever. Maybe we should just let sleeping dogs lie.

I think you and I are in agreement though that an SQL level mechanism is 
not the way to go, at least for now.

cheers

andrew


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Proposal: USING clause for DO statement
Next
From: Michael Meskes
Date:
Subject: Re: [INTERFACES] ecpg & 8.3 -> 8.4 migration