pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Conditional compilation
Date: Sun, 12 Nov 2023 09:37:47 -0600
Message-ID: <8e2dca7c-e73d-41c7-83d1-28e5b414eaf1@gmail.com> (raw)
In-Reply-To: <1ed285e8-2ac0-4873-87e9-02a4d412732d@gelassene-pferde.biz>
References: <1ed285e8-2ac0-4873-87e9-02a4d412732d@gelassene-pferde.biz>

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.





view thread (4+ messages)  latest in thread

Message-ID: <8e2dca7c-e73d-41c7-83d1-28e5b414eaf1@gmail.com>
Permalink:  ../8e2dca7c-e73d-41c7-83d1-28e5b414eaf1@gmail.com/
Also on:    postgresql.org/message-id/8e2dca7c-e73d-41c7-83d1-28e5b414eaf1@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: Conditional compilation
  In-Reply-To: <8e2dca7c-e73d-41c7-83d1-28e5b414eaf1@gmail.com>
  References: <1ed285e8-2ac0-4873-87e9-02a4d412732d@gelassene-pferde.biz> <8e2dca7c-e73d-41c7-83d1-28e5b414eaf1@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox