2010/1/9 Dimitri Fontaine <dfontaine(at)hi-media(dot)com>:
> Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com> writes:
>
>> Is there any nice way to do something like that in plpgsql:
>>
>> EXECUTE 'INSERT INTO '||partition_table_name||' VALUES'||(NEW.*)||'';
>
> See http://wiki.postgresql.org/wiki/PL/pgSQL_Dynamic_Triggers
> --
that approach is awful. Sam's method (or the one I posted in the same
thread using dollar quoting) is much faster/better.
merlin