I am trying to create tables from within a funtion i.e.
create function _tree_create(text) retuns int as '
begin;
create table $1_tree (....);
return 1;
end;
...
select _tree_create('item');
An error message refering to $1 gets thrown up. Is this not possible to do
or is there another way of doing it?
Thanks in advance.
Graham