On 09/01/2014 05:41 PM, Joel Jacobson wrote:
> On Mon, Sep 1, 2014 at 4:26 PM, Craig Ringer <craig@2ndquadrant.com> wrote:
>> Well, the idiom:
>>
>> EXECUTE format("SELECT %I FROM %I WHERE $1", col, tbl) USING val;
>>
>> is not lovely. It works, but it's clumsy.
>
> This is exactly why we need a new language.
We could certainly improve that syntax in PL/pgSQL. No need to start
from scratch for that..
Got a suggestion what the syntax should look like?
- Heikki