Re: Proposal: USING clause for DO statement

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Petr Jelinek <pjmodos(at)pjmodos(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Proposal: USING clause for DO statement
Date: 2009-11-21 17:36:22
Message-ID: 4B082516.3040009@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavel Stehule wrote:
> I would to use this
> statement for some non trivial maintenance tasks - and I would to use
> external parameter (from command line). My question is - what is a
> good way for passing some value (from command line) to DO statement
> body? I accept any mechanism.
>
>

See my earlier comment:

> Perhaps part of the problem is that psql can't interpolate its
> variable into strings. Solving that might lessen the impetus for this,
> and have other uses besides.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2009-11-21 18:20:47 Hot standby and removing VACUUM FULL
Previous Message Pavel Stehule 2009-11-21 17:16:28 Re: Proposal: USING clause for DO statement