pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Lorusso Domenico <domenico.l76@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: How to add function schema in search_path in option definitio
Date: Tue, 11 Jul 2023 12:41:09 -0700
Message-ID: <87e07b97-fac2-7dae-4f7e-43e3d6cfb978@aklaver.com> (raw)
In-Reply-To: <CAJMpnG75SRdDHKFXODS4eAcK7xR9ZZa9pRu-r2cfBPE6A+LMrQ@mail.gmail.com>
References: <CAJMpnG7LqoS5=2derJ3UmL1UGw859RtjZ1buM1EMa+CL+8mjfQ@mail.gmail.com>
	<9f3db764-804e-7154-3f8c-f5f19628178e@aklaver.com>
	<CAJMpnG5AnsPa6hBsz3g4V80rG1Abvt9CrZwN9QHGOpHavRo=BA@mail.gmail.com>
	<20230709110149.hdjv6vhukz2sz3c6@hjp.at>
	<CAJMpnG67ZYKk47C75umomp2=A4rW9z33KyA15goZ7QYL=n=DXg@mail.gmail.com>
	<c04a9e4a-8fc1-33af-2126-7685c25bccf9@aklaver.com>
	<CAJMpnG75SRdDHKFXODS4eAcK7xR9ZZa9pRu-r2cfBPE6A+LMrQ@mail.gmail.com>

On 7/11/23 12:35, Lorusso Domenico wrote:
> yes, but this is a code inside each function.
>   having 20 functions I've to start executing this instruction 20 times, 
> one per function.
> I know it could work, I looking for something of more smart :-)

Here:

https://www.postgresql.org/message-id/66677cb3-17b3-20d1-1c22-9a7ac3208921%40aklaver.com

I provide options 1) and 3) to use instead of including the path change 
in the functions(s).

> 
> Il giorno dom 9 lug 2023 alle ore 23:21 Adrian Klaver 
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> ha scritto:
> 
>     On 7/9/23 13:47, Lorusso Domenico wrote:
>      > Hello Adrian and Peter,
>      > yes the set parameter in function definition is also my preferred
>      > choice, but....
>      >
>      > I need to add the schema to path, not to substitute the path,
>     this is my
>      > problem
>      >
> 
>     This post:
> 
>     https://www.postgresql.org/message-id/9f3db764-804e-7154-3f8c-f5f19628178e%40aklaver.com <https://www.postgresql.org/message-id/9f3db764-804e-7154-3f8c-f5f19628178e%40aklaver.com;
> 
>     showed a way to do that.
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 
> 
> 
> -- 
> Domenico L.
> 
> per stupire mezz'ora basta un libro di storia,
> io cercai di imparare la Treccani a memoria... [F.d.A.]

-- 
Adrian Klaver
adrian.klaver@aklaver.com






view thread (15+ messages)  latest in thread

Message-ID: <87e07b97-fac2-7dae-4f7e-43e3d6cfb978@aklaver.com>
Permalink:  ../87e07b97-fac2-7dae-4f7e-43e3d6cfb978@aklaver.com/
Also on:    postgresql.org/message-id/87e07b97-fac2-7dae-4f7e-43e3d6cfb978@aklaver.com

 · 

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 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: adrian.klaver@aklaver.com, domenico.l76@gmail.com
  Subject: Re: How to add function schema in search_path in option definitio
  In-Reply-To: <87e07b97-fac2-7dae-4f7e-43e3d6cfb978@aklaver.com>
  References: <CAJMpnG7LqoS5=2derJ3UmL1UGw859RtjZ1buM1EMa+CL+8mjfQ@mail.gmail.com> <9f3db764-804e-7154-3f8c-f5f19628178e@aklaver.com> <CAJMpnG5AnsPa6hBsz3g4V80rG1Abvt9CrZwN9QHGOpHavRo=BA@mail.gmail.com> <20230709110149.hdjv6vhukz2sz3c6@hjp.at> <CAJMpnG67ZYKk47C75umomp2=A4rW9z33KyA15goZ7QYL=n=DXg@mail.gmail.com> <c04a9e4a-8fc1-33af-2126-7685c25bccf9@aklaver.com> <CAJMpnG75SRdDHKFXODS4eAcK7xR9ZZa9pRu-r2cfBPE6A+LMrQ@mail.gmail.com> <87e07b97-fac2-7dae-4f7e-43e3d6cfb978@aklaver.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