Re: RfD: more powerful "any" types

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: decibel <decibel(at)decibel(dot)org>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "David E(dot) Wheeler" <david(at)kineticode(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: RfD: more powerful "any" types
Date: 2009-09-12 22:54:39
Message-ID: 4AAC26AF.2000206@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

decibel wrote:
>
>
> Speaking of concatenation...
>
> Something I find sorely missing in plpgsql is the ability to put
> variables inside of a string, ie:
>
> DECLARE
> v_table text := ...
> v_sql text;
> BEGIN
> v_sql := "SELECT * FROM $v_table";
>
> Of course, I'm assuming that if it was easy to do that it would be
> done already... but I thought I'd just throw it out there.
>

Then use a language that supports variable interpolation in strings,
like plperl, plpythonu, plruby .... instead of plpgsql.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2009-09-12 23:10:44 Re: plperl returning setof foo[]
Previous Message daveg 2009-09-12 22:45:22 Re: RfD: more powerful "any" types