Re: Conditional compilation

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Conditional compilation
Date: 2023-11-12 15:37:47
Message-ID: 8e2dca7c-e73d-41c7-83d1-28e5b414eaf1@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/12/23 09:32, Thiemo Kellner wrote:
> Hi
>
> Does PostgreSQL have something like Oracle's conditional compilation? This
> is sort of an if then statement that gets evaluated on
> compilation/installation time of PL/SQL code. If the condition is met, the
> code until the $END gets compiled. It is even possible to switch on/off
> parts of single statements. I suppose it is sort of a preprocessor that
> removes the code part from $IF until $END if the condition is not met.

Pl/PgSQL is an interpreted language; there is no compilation.  At
creation/installation, it just (I think) does syntax checks; it definitely
doesn't care if a table exists or not.

--
Born in Arizona, moved to Babylonia.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2023-11-12 15:58:09 Re: Conditional compilation
Previous Message Thiemo Kellner 2023-11-12 15:32:39 Conditional compilation