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 13:17:16 -0700
Message-ID: <ae0b56f3-368b-b571-945d-78f7ec274bc3@aklaver.com> (raw)
In-Reply-To: <CAJMpnG6YGhPNpHqyyrF3zyrus5iKfcZF4O9cSHBh5X+o2wDNHQ@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>
	<87e07b97-fac2-7dae-4f7e-43e3d6cfb978@aklaver.com>
	<CAJMpnG6YGhPNpHqyyrF3zyrus5iKfcZF4O9cSHBh5X+o2wDNHQ@mail.gmail.com>

On 7/11/23 12:47, Lorusso Domenico wrote:
> Adrian I have read your suggestions, but:
> 1) I need to change path inside a group of function (like a package) not 
> for any connection
> 2) Yes inside function is clear I can do that
> 3) some like 1 and, moreover, I can't be sure to create my own role, 
> because the target db will be cloud sql

First mention that you are using a fork of the community Postgres.

In any case Cloud SQL does allow creating roles:

https://cloud.google.com/sql/docs/postgres/users

My guess though is you will need to do 2).

> 
> My question doesn't aim just to fix a specific issue, but to learn the 
> best way (if exist) to solve the class of issues (raised by the case) in 
> postgresql.
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com






view thread (15+ messages)  latest in thread

Message-ID: <ae0b56f3-368b-b571-945d-78f7ec274bc3@aklaver.com>
Permalink:  ../ae0b56f3-368b-b571-945d-78f7ec274bc3@aklaver.com/
Also on:    postgresql.org/message-id/ae0b56f3-368b-b571-945d-78f7ec274bc3@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: <ae0b56f3-368b-b571-945d-78f7ec274bc3@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> <CAJMpnG6YGhPNpHqyyrF3zyrus5iKfcZF4O9cSHBh5X+o2wDNHQ@mail.gmail.com> <ae0b56f3-368b-b571-945d-78f7ec274bc3@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