pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joao Ribeiro <joao.ribeiro@foursource.pt>
To: pgsql-admin@postgresql.org
Subject: Schema's vs Single Database with prefix on tables
Date: Sun, 9 Sep 2018 11:39:51 +0100
Message-ID: <30A5D829-58E2-4934-9C93-25968D05183B@foursource.pt> (raw)

Hello,

We are using Postgres and we are with a issue. We have splited our tables by domain and each domain has a separated database, but we are trying to change it to a single database model. We have two options, create the same database in a single schema and add a prefix on each database domain or create a schema for each database (we have about 15 different models). In this approach we still want to do some joins and other queries cross schema, but we don’t know what would be the best approach :) Could you help us to know what would be the best approach ?

* having just one database with one schema and all domain databases with a prefix
* having a schema for each domain (15 domains) with the domain databases (+/ 20 tables) (knowing that we do cross schema queries)

_____

Best regards,

João Ribeiro
joao.ribeiro@foursource.pt





www.foursource.com <http://www.foursource.com/;

Attachments:

Webp.net-resizeimage.png (image/png, 4.0K) download view image

view thread (6+ messages)  latest in thread

Message-ID: <30A5D829-58E2-4934-9C93-25968D05183B@foursource.pt>
Permalink:  ../30A5D829-58E2-4934-9C93-25968D05183B@foursource.pt/
Also on:    postgresql.org/message-id/30A5D829-58E2-4934-9C93-25968D05183B@foursource.pt

 · 

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-admin@postgresql.org
  Cc: joao.ribeiro@foursource.pt
  Subject: Re: Schema's vs Single Database with prefix on tables
  In-Reply-To: <30A5D829-58E2-4934-9C93-25968D05183B@foursource.pt>
  References: <30A5D829-58E2-4934-9C93-25968D05183B@foursource.pt>

* 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