Re: Dynamic plpgsql code - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Dynamic plpgsql code
Date
Msg-id 200307210448.h6L4mhL29567@candle.pha.pa.us
Whole thread Raw
In response to Dynamic plpgsql code  ("Natasa Bulatovic" <n.bulatovic@zim.mpg.de>)
List pgsql-general
Sure, use EXECUTE in PL/pgSQL.

---------------------------------------------------------------------------

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
codeitself.... 
>
> 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?
>
>
> Cheers,
> Natasa

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Rules and actions involving multiple rows
Next
From: u15074
Date:
Subject: Checkpoint question