Re: Temporary tables inside functions problem

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Temporary tables inside functions problem
Дата
Msg-id 20030608125203.V99603-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Temporary tables inside functions problem  (Avi Schwartz <avi@CFFtechnologies.com>)
Список pgsql-general
On Sat, 7 Jun 2003, Avi Schwartz wrote:

> I have a function (func2) which creates 2 temporary tables when it
> starts and drops them before it returns.
> Another function (func1) calls func2.
>
>  From psql:
> Calling func2 directly works fine.
> Calling func1 which in turn calls func2 works fine.
>
>  From ColdFusion MX:
> If I call func2 directly from within ColdFusion it works fine.
> If I call func1 which in turn calls func2 from within ColdFusion, I get
> the following error:
>
> ERROR:  pg_class_aclcheck: relation 8392689 not found
> WARNING:  Error occurred while executing PL/pgSQL function func2

If you want to work with temporary tables from inside plpgsql or with
other tables that you're creating and dropping, you'll need to use EXECUTE
for the queries that use the table so that it won't cache the query plan.


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

Предыдущее
От: Arjen van der Meijden
Дата:
Сообщение: Re: Linux 2.6 kernel,
Следующее
От: Patrick Welche
Дата:
Сообщение: Re: check constraint