Re: schema agnostic functions in language sql

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: schema agnostic functions in language sql
Date: 2020-05-16 11:54:40
Message-ID: 81A0F056-6703-4FD4-96BE-D13485CA1995@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> 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(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tatsuo Ishii 2020-05-16 11:55:15 Re: Pgpool is crashing when terminating user session
Previous Message RAJAMOHAN 2020-05-16 11:20:05 Pgpool is crashing when terminating user session