Re: [GENERAL] dynamic table naming in function

2005-10-29 Thread Matthew Peter
Thanks for pointing me in the right direction. I read about EXECUTE in the docs now. > Most of the other PLs don't cache query plans > at all, and so all queries are effectively EXECUTE'd > and there's no issue. I'm not sure what you mean... Is there a more suitable LANGUAGE declaration you wo

Re: [GENERAL] dynamic table naming in function

2005-10-29 Thread Tom Lane
Matthew Peter <[EMAIL PROTECTED]> writes: > Out of curiosity, I was wondering if it is possible to > use dynamic table names in a function? In plpgsql, you can do this by building dynamic query strings and EXECUTE'ing them. Most of the other PLs don't cache query plans at all, and so all queries

Re: [GENERAL] dynamic table naming in function

2005-10-29 Thread Bruno Wolff III
On Sat, Oct 29, 2005 at 10:45:21 -0700, Matthew Peter <[EMAIL PROTECTED]> wrote: > Out of curiosity, I was wondering if it is possible to > use dynamic table names in a function? AND whether or > not you can test a value prior to insert to see > whether or not you want to update that column. Wher

[GENERAL] dynamic table naming in function

2005-10-29 Thread Matthew Peter
Out of curiosity, I was wondering if it is possible to use dynamic table names in a function? AND whether or not you can test a value prior to insert to see whether or not you want to update that column. Where you could pass in the name of the table for it use ANY name passed in rather than statica