public inbox for [email protected]  
help / color / mirror / Atom feed
Re: PostgreSQL include directive in plpgsql language PL/pgSQL
2+ messages / 2 participants
[nested] [flat]

* Re: PostgreSQL include directive in plpgsql language PL/pgSQL
@ 2025-09-05 13:21  David G. Johnston <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: David G. Johnston @ 2025-09-05 13:21 UTC (permalink / raw)
  To: PALAYRET Jacques <[email protected]>; +Cc: [email protected] <[email protected]>

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.

David J.


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: PostgreSQL include directive in plpgsql language PL/pgSQL
@ 2025-09-05 13:56  Tom Lane <[email protected]>
  parent: David G. Johnston <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2025-09-05 13:56 UTC (permalink / raw)
  To: David G. Johnston <[email protected]>; +Cc: PALAYRET Jacques <[email protected]>; [email protected] <[email protected]>

"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






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2025-09-05 13:56 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-09-05 13:21 Re: PostgreSQL include directive in plpgsql language PL/pgSQL David G. Johnston <[email protected]>
2025-09-05 13:56 ` Tom Lane <[email protected]>

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