| From: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
|---|---|
| To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
| Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, 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 18:35:19 |
| Message-ID: | b42b73150911211035g37c77799o5b774dc85aa42342@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Sat, Nov 21, 2009 at 1:24 PM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
> 2009/11/21 Merlin Moncure <mmoncure(at)gmail(dot)com>:
>> On Sat, Nov 21, 2009 at 12:36 PM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
>>>> 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.
> I am not sure, if I understand well. Can you show some use cases, please?
If I understand Andrew correctly,
\set msg world
DO $$
BEGIN
RAISE NOTICE 'Hello, %', :msg;
END
$$;
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Stehule | 2009-11-21 18:56:02 | Re: Proposal: USING clause for DO statement |
| Previous Message | Pavel Stehule | 2009-11-21 18:24:10 | Re: Proposal: USING clause for DO statement |