public inbox for [email protected]  
help / color / mirror / Atom feed
From: intmail01 <[email protected]>
To: [email protected]
Subject: How to choose table in SELECT clause without schema qualifier or 'set local'
Date: Fri, 22 Mar 2024 10:11:23 +0300
Message-ID: <CAKJANSDpz7TXn30vv1HVSjRv0N+xSnyiSnfyMdFaeXh1_yfFuw@mail.gmail.com> (raw)

Hi,

My db have many schemas (company name) and there are SELECT code related to
tables that I distribute for each company users.

The structure inside are the same for all schemas.

It is a nightmare to change code each time to modify the schema qualifier
or SET LOCAL search_path when I add a new company.
Is there command, configurations or any trick to not modify code each time
I add company then code can works for any schema.

Thanks.


view thread (2+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: How to choose table in SELECT clause without schema qualifier or 'set local'
  In-Reply-To: <CAKJANSDpz7TXn30vv1HVSjRv0N+xSnyiSnfyMdFaeXh1_yfFuw@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox