Re: quick q re execute & scope of new

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
Cc: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: quick q re execute & scope of new
Date: 2015-04-03 04:10:06
Message-ID: 14789.1428034206@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Ribe <scott_ribe(at)elevated-dev(dot)com> writes:
> Easier to give an example than describe the question, any chance of making something like this work?
> execute('insert into ' || tblname || ' values(new.*)');

Not like that, for certain. It might work to use EXECUTE ... USING new.*
or some variant of that.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2015-04-03 04:14:14 Re: quick q re execute & scope of new
Previous Message Scott Ribe 2015-04-03 03:30:12 quick q re execute & scope of new