Re: How PostgreSQL handles multiple DDBB instances?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How PostgreSQL handles multiple DDBB instances?
Дата
Msg-id 20203.1180118064@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How PostgreSQL handles multiple DDBB instances?  (Arnau <arnaulist@andromeiberica.com>)
Список pgsql-performance
Arnau <arnaulist@andromeiberica.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

В списке pgsql-performance по дате отправления:

Предыдущее
От: Arnau
Дата:
Сообщение: Re: How PostgreSQL handles multiple DDBB instances?
Следующее
От: Dave Pirotte
Дата:
Сообщение: Performance problem on 8.2.4, but not 8.2.3