From: Rob Sargent <robjsargent@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: schema agnostic functions in language sql
Date: Sat, 16 May 2020 05:54:40 -0600
Message-ID: <81A0F056-6703-4FD4-96BE-D13485CA1995@gmail.com> (raw)
In-Reply-To: <6bc65c43-eca0-97f4-f343-37af78e1db25@aklaver.com>
References: <6bc65c43-eca0-97f4-f343-37af78e1db25@aklaver.com>
> On
>>> regards, tom lane
>> Did my message with a sql and plgpsql versions not come through?
>> I cannot create a plain sql function unless the search_path covers any table mentioned. Not the case when using plpgsql - no path needed.
>
> But does the plpgsql segment_calls() run?
>
> On other words does:
>
> select * from segment_calls(segid uuid);
>
> work?
>
>> I'm ok(ish) with that, unless I've missed some detail.
>> rjs
>
Yes the plpgsql form works but of course requires a sufficient search_path
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
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: robjsargent@gmail.com, adrian.klaver@aklaver.com, tgl@sss.pgh.pa.us, david.g.johnston@gmail.com
Subject: Re: schema agnostic functions in language sql
In-Reply-To: <81A0F056-6703-4FD4-96BE-D13485CA1995@gmail.com>
References: <6bc65c43-eca0-97f4-f343-37af78e1db25@aklaver.com> <81A0F056-6703-4FD4-96BE-D13485CA1995@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