Re: How PostgreSQL handles multiple DDBB instances?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: arnaulist(at)andromeiberica(dot)com
Cc: PostgreSQL Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: How PostgreSQL handles multiple DDBB instances?
Date: 2007-05-25 18:34:24
Message-ID: 20203.1180118064@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Arnau <arnaulist(at)andromeiberica(dot)com> writes:
> 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?

[ shrug... ] That's going to depend on enough factors that I don't
think anyone could give you a generic answer. You'd have to test it for
yourself under your own application conditions.

However: doing it that way seems to me to create severe risks that the
customers might be able to look at each others' data. You probably want
to go with separate databases just as a security matter.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Peter T. Breuer 2007-05-25 18:57:34 Re: general PG network slowness (possible cure) (repost)
Previous Message Arnau 2007-05-25 18:16:08 Re: How PostgreSQL handles multiple DDBB instances?