Re: PGplSql: Relation 44451 does not exist

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: PGplSql: Relation 44451 does not exist
Дата
Msg-id 40D7EEA9.4030807@archonet.com
обсуждение исходный текст
Ответ на PGplSql: Relation 44451 does not exist  ("Kuti Attila" <attila.kuti@deepblue.hu>)
Список pgsql-general
Kuti Attila wrote:
> Hi,
>
> I have a pgplsql function. It is quite short and simple.
>
> The problem:
>
> The following error message comes up for the SECOND time I call the it
> "Relation 44451 does not exist"
>
> In the function I create a temporary table, and at the end I drop it. There
> may be problem with this ? I don't know.

Plpgsql is compiled, so it refers to tables via their OID. The second
time around Tmembers has a different OID and so you get your error message.

The solution is to use the EXECUTE construct when accessing the table,
or to use an interpreted language (e.g. pltcl).

HTH
--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Do we need more emphasis on backup?
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: PGplSql: Relation 44451 does not exist