Create table doesn't work in plpgsql

Поиск
Список
Период
Сортировка
От Volker Paul
Тема Create table doesn't work in plpgsql
Дата
Msg-id 00121919014900.01625@james
обсуждение исходный текст
Ответы Re: Create table doesn't work in plpgsql  (Jie Liang <jliang@jliang.ipinc.com>)
Список pgsql-sql
Hi,

can I do some table manipulation in plpgsql?
Look at only the "create table" line and the error message:

create function plural (text) returns text as '  begin   create table tmp (num int4);   return $1 || ''s'';   end;'
language'plpgsql'; 
 
select plural('test'); 
CREATE
ERROR:  copyObject: don't know how to copy 611

What does the error message mean? Where can I read more about it?

Cheers, Volker


В списке pgsql-sql по дате отправления:

Предыдущее
От: Frank Joerdens
Дата:
Сообщение: Re: Tree structure table normalization problem (do I need a trigger?)
Следующее
От: Jie Liang
Дата:
Сообщение: Re: SQL query not working when GROUP BY / HAVING is used