pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Vasu Madhineni <vasumdba1515@gmail.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general@postgresql.org
Subject: Re: Multitenent architecture
Date: Fri, 5 Jun 2020 04:09:10 -0600
Message-ID: <45AB91CB-EFBF-40A6-9920-D757AA7F159D@gmail.com> (raw)
In-Reply-To: <CAFacQoETZGA7e6WOwgz6Q9vFd=T1xkLVuLW0DP_40h+Ty7ca6g@mail.gmail.com>
References: <CAFacQoETZGA7e6WOwgz6Q9vFd=T1xkLVuLW0DP_40h+Ty7ca6g@mail.gmail.com>



> On Jun 5, 2020, at 2:54 AM, Vasu Madhineni <vasumdba1515@gmail.com> wrote:
> 
> 
> If the data size is more than 6TB, which approach better?
> 
>> On Fri, Jun 5, 2020 at 2:57 PM Laurenz Albe <laurenz.albe@cybertec.at> wrote:
>> On Thu, 2020-06-04 at 23:52 +0800, Vasu Madhineni wrote:
>> > We are planning a POC on multitenant architecture in Postgres, Could you please
>> > help us with steps for multitenant using schema for each application model.
>> 
>> For few tenants, you can keep identical tables in several schemas and
>> set "search_path" to select a tenant.
>> 
>> With many tenants, you are better off with one table that holds the
>> data for all clients.  You can use Row Level Security to have each
>> tenant see only his or her data, and it might be a good idea to
>> use list partitioning on the tenant ID.
>> 
>> Yours,
>> Laurenz Albe
>> -- 
>> Cybertec | https://www.cybertec-postgresql.com
>> 
The question is How many separate data owners?=

view thread (15+ messages)  latest in thread

Message-ID: <45AB91CB-EFBF-40A6-9920-D757AA7F159D@gmail.com>
Permalink:  ../45AB91CB-EFBF-40A6-9920-D757AA7F159D@gmail.com/
Also on:    postgresql.org/message-id/45AB91CB-EFBF-40A6-9920-D757AA7F159D@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: robjsargent@gmail.com, vasumdba1515@gmail.com, laurenz.albe@cybertec.at
  Subject: Re: Multitenent architecture
  In-Reply-To: <45AB91CB-EFBF-40A6-9920-D757AA7F159D@gmail.com>
  References: <CAFacQoETZGA7e6WOwgz6Q9vFd=T1xkLVuLW0DP_40h+Ty7ca6g@mail.gmail.com> <45AB91CB-EFBF-40A6-9920-D757AA7F159D@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