pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dominique Devienne <ddevienne@gmail.com>
To: Ganesh Korde <ganeshakorde@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Paul van der Linden <paul.doskabouter@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Cannot find hstore operator
Date: Mon, 24 Jan 2022 11:40:30 +0100
Message-ID: <CAFCRh-_FRCoarb++pwspbMO9dTh0mCcMorrCGoDivTSpHPCrig@mail.gmail.com> (raw)
In-Reply-To: <CAPNyb0XH1DKZPODJ9d7=Qe0UmBHtH9z0mb1aQqvo4bXNfyDKdw@mail.gmail.com>
References: <CAEC-EqDH4ZfC_A6wfEfJdGFsZX+DhyURv3K-Q1aLHLozJwSqOA@mail.gmail.com>
	<856144.1642687523@sss.pgh.pa.us>
	<CAEC-EqB9Aa0tgitK7xzrbMq=uVc_VE6xGL0reo5j0KbCqOb0=Q@mail.gmail.com>
	<1585432.1642951326@sss.pgh.pa.us>
	<CAFCRh-9SAjvzjs8FFS5hd1qArCKDqM3GqPq2-toDiT-dZUXUow@mail.gmail.com>
	<CAPNyb0XH1DKZPODJ9d7=Qe0UmBHtH9z0mb1aQqvo4bXNfyDKdw@mail.gmail.com>

On Mon, Jan 24, 2022 at 11:19 AM Ganesh Korde <ganeshakorde@gmail.com> wrote:
> On Mon, 24 Jan 2022, 3:22 pm Dominique Devienne, <ddevienne@gmail.com> wrote:
>> Is there any way to achieve that, beside our current `SET search_path` workaround?

> This might help.
> Alter user <user name> SET search_path TO myschema,public;
> No need to set search_path every time.

Hi. Not really, no, I'm afraid.

I'm in charge and control the app's schemas, not the LOGIN USERs using
those schemas.
I.e. my triggers shouldn't have to rely on the session's search_path
at all, and nor how that search_path is set.
Also, the schema(s) to access are dynamic, and some clients don't set
a search_path at all.
My triggers shouldn't stop working when there's no search_path (i.e.
only pg_catalog and pg_temp are implicitly resolved).





view thread (13+ messages)  latest in thread

Message-ID: <CAFCRh-_FRCoarb++pwspbMO9dTh0mCcMorrCGoDivTSpHPCrig@mail.gmail.com>
Permalink:  ../CAFCRh-_FRCoarb++pwspbMO9dTh0mCcMorrCGoDivTSpHPCrig@mail.gmail.com/
Also on:    postgresql.org/message-id/CAFCRh-_FRCoarb++pwspbMO9dTh0mCcMorrCGoDivTSpHPCrig@mail.gmail.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: ddevienne@gmail.com, ganeshakorde@gmail.com, tgl@sss.pgh.pa.us, paul.doskabouter@gmail.com
  Subject: Re: Cannot find hstore operator
  In-Reply-To: <CAFCRh-_FRCoarb++pwspbMO9dTh0mCcMorrCGoDivTSpHPCrig@mail.gmail.com>
  References: <CAEC-EqDH4ZfC_A6wfEfJdGFsZX+DhyURv3K-Q1aLHLozJwSqOA@mail.gmail.com> <856144.1642687523@sss.pgh.pa.us> <CAEC-EqB9Aa0tgitK7xzrbMq=uVc_VE6xGL0reo5j0KbCqOb0=Q@mail.gmail.com> <1585432.1642951326@sss.pgh.pa.us> <CAFCRh-9SAjvzjs8FFS5hd1qArCKDqM3GqPq2-toDiT-dZUXUow@mail.gmail.com> <CAPNyb0XH1DKZPODJ9d7=Qe0UmBHtH9z0mb1aQqvo4bXNfyDKdw@mail.gmail.com> <CAFCRh-_FRCoarb++pwspbMO9dTh0mCcMorrCGoDivTSpHPCrig@mail.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