Re: "Relation x does not exist" error when x does exist

Поиск
Список
Период
Сортировка
Искать
От
Stephan Szabo
Тема
Re: "Relation x does not exist" error when x does exist
Дата
Msg-id
Pine.BSF.4.21.0110121113370.97475-100000@megazone23.bigpanda.com
Ответ на
Список
Дерево обсуждения
Re: "Relation x does not exist" error when x does exist Gaurav Priyolkar <gaurav_lists@yahoo.com>
Re: "Relation x does not exist" error when x does exist merlyn@stonehenge.com (Randal L. Schwartz)
Dynamically created tables [WAS Re: "Relation x does not exist" ... Gaurav Priyolkar <pgaurav@goatelecom.com>
Re: Dynamically created tables [WAS Re: "Relation x Keary Suska <hierophant@pcisys.net>
Re: Dynamically created tables [WAS Re: "Relation x Gaurav Priyolkar <gaurav_lists@yahoo.com>
Re: Dynamically created tables [WAS Re: "Relation x does not exist" ... merlyn@stonehenge.com (Randal L. Schwartz)
Re: "Relation x does not exist" error when x does exist Stephan Szabo <sszabo@megazone23.bigpanda.com>

plpgsql functions that want to do drops and
creates will need to use EXECUTE to run 
statements for those tables.  

On Thu, 11 Oct 2001, Gaurav Priyolkar wrote:

> Hi all,
> 
> I have a function as follows:
> 
> 
> [gaurav@linuxserver gaurav]$ cat foo
> 
> DROP FUNCTION foo();
> CREATE FUNCTION foo() RETURNS INTEGER AS '
> 
> BEGIN
> 
>         DROP TABLE foo_1;
>         CREATE TABLE foo_1 AS SELECT x FROM foo;
> 
>         DROP TABLE foo_2;
>         CREATE TABLE foo_2 AS SELECT x FROM foo_1;
> 
>         RETURN 1;
> 
> END;
> ' LANGUAGE 'plpgsql';

В списке pgsql-general по дате отправления
От: Bruce Momjian
Дата:
От: Charles Tassell
Дата:
Сообщение: Re: COMMIT after an ERROR?
FAQ