Re: PostgreSQL include directive in plpgsql language PL/pgSQL - Mailing list pgsql-general

From Tom Lane
Subject Re: PostgreSQL include directive in plpgsql language PL/pgSQL
Date
Msg-id 1363069.1757080617@sss.pgh.pa.us
Whole thread Raw
In response to Re: PostgreSQL include directive in plpgsql language PL/pgSQL  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-general
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Friday, September 5, 2025, PALAYRET Jacques <jacques.palayret@meteo.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



pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: PostgreSQL include directive in plpgsql language PL/pgSQL
Next
From: Merlin Moncure
Date:
Subject: Re: PostgreSQL include directive in plpgsql language PL/pgSQL