Re: Dynamic plpgsql code

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Dynamic plpgsql code
Дата
Msg-id 200307100933.47900.dev@archonet.com
обсуждение исходный текст
Ответ на Dynamic plpgsql code  ("Natasa Bulatovic" <n.bulatovic@zim.mpg.de>)
Список pgsql-general
On Monday 07 Jul 2003 8:54 am, Natasa Bulatovic wrote:
> Hi dear All,
>
> I wander, is there a way to execute dynamic plpgsql code which is not
> restricted to sql command, but executes plpgsql code itself....
>
> For example... I would like to form dynamically a part of the code which
> contains ...
>
> "if-- end if... raise notice --- "
>
> I have been using such possibilities in Oracle, so pls. tell me if this
> possibility somehow is given in PlPgsql as well?

Well - I wrote a plpgsql function that created a plpgsql function, but that's
about all you could do. There's no "eval()" type of call.

You can, of course execute dynamically formed SQL so that handle some of your
requirements.

--
  Richard Huxton

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

Предыдущее
От: Csaba Nagy
Дата:
Сообщение: Re: Dynamic plpgsql code
Следующее
От: Csaba Nagy
Дата:
Сообщение: Re: IIRC + intervals + and other things