public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: David G. Johnston <[email protected]>
Cc: PALAYRET Jacques <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: PostgreSQL include directive in plpgsql language PL/pgSQL
Date: Fri, 05 Sep 2025 09:56:57 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAKFQuwa5ZN1DRe8NKmjnfJ0zh6HL7Dv8L1Sgjfta52Nm3q9a9A@mail.gmail.com>
References: <[email protected]>
	<CAKFQuwa5ZN1DRe8NKmjnfJ0zh6HL7Dv8L1Sgjfta52Nm3q9a9A@mail.gmail.com>

"David G. Johnston" <[email protected]> writes:
> On Friday, September 5, 2025, PALAYRET Jacques <[email protected]>
> 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






view thread (2+ messages)

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: PostgreSQL include directive in plpgsql language PL/pgSQL
  In-Reply-To: <[email protected]>

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

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