pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: arnaulist@andromeiberica.com
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: How PostgreSQL handles multiple DDBB instances?
Date: Tue, 29 May 2007 15:07:33 -0700
Message-ID: <1180476453.26915.79.camel@dogma.v10.wvs> (raw)
In-Reply-To: <465727E8.8090806@andromeiberica.com>
References: <4656A3BE.1070409@andromeiberica.com>
	<8684.1180103080@sss.pgh.pa.us>
	<465719D5.9040107@andromeiberica.com>
	<19775.1180116288@sss.pgh.pa.us>
	<465727E8.8090806@andromeiberica.com>

On Fri, 2007-05-25 at 20:16 +0200, Arnau wrote:
>    The point I'm worried is performance. Do you think the performance 
> would be better executing exactly the same queries only adding an extra 
> column to all the tables e.g. customer_id, than open a connection to the 
> only one customers DB and execute the query there?

Have you already considered using views with specific privileges to
separate your customers?

Regards,
	Jeff Davis




view thread (8+ messages)  latest in thread

Message-ID: <1180476453.26915.79.camel@dogma.v10.wvs>
Permalink:  ../1180476453.26915.79.camel@dogma.v10.wvs/
Also on:    postgresql.org/message-id/1180476453.26915.79.camel@dogma.v10.wvs

 · 

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: pgsql-performance@postgresql.org
  Cc: pgsql@j-davis.com, arnaulist@andromeiberica.com, tgl@sss.pgh.pa.us
  Subject: Re: How PostgreSQL handles multiple DDBB instances?
  In-Reply-To: <1180476453.26915.79.camel@dogma.v10.wvs>

* 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