Re: PostgreSQL include directive in plpgsql language PL/pgSQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: PALAYRET Jacques <jacques(dot)palayret(at)meteo(dot)fr>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: PostgreSQL include directive in plpgsql language PL/pgSQL
Date: 2025-09-05 13:56:57
Message-ID: 1363069.1757080617@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> On Friday, September 5, 2025, PALAYRET Jacques <jacques(dot)palayret(at)meteo(dot)fr>
> wrote:
>> Is there an equivalent of #include (include directive) in functions
>> (written in plpgsql language)?

> No, there is not.

And there won't be one in the future either, as it would
give server filesystem access to unprivileged SQL users.
(Admittedly just read-only access, but that's still not OK.)

Conceivably you could build some such facility into your
client-side code that is issuing CREATE FUNCTION commands.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2025-09-05 16:21:08 Re: PostgreSQL include directive in plpgsql language PL/pgSQL
Previous Message David G. Johnston 2025-09-05 13:21:37 Re: PostgreSQL include directive in plpgsql language PL/pgSQL