Re: User privileges in web database applications

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: User privileges in web database applications
Дата
Msg-id F0490AB7-D567-41EC-9326-75FD554FDF71@pgedit.com
обсуждение исходный текст
Ответ на User privileges in web database applications  (Antonis Christofides <anthony@itia.ntua.gr>)
Ответы Re: User privileges in web database applications  (Tim Hart <tjhart@mac.com>)
Список pgsql-general
On Jun 29, 2006, at 3:37 AM, Antonis Christofides wrote:

> The benefit of this solution is that
> I avoid reconnecting to the database on each request, having instead a
> persistent connection as user "postgres".

But it is also a resource liability. How do you know if the user will
make another request or when they are "finished" using your site? You
can certainly time out the connection but for a busy site you will
potentially be holding open a large number of connections that will
never be used again.

I agree with your reasons for wanting to do this, but it may not be
feasible for a busy web site.



John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_restore: [archiver] could not open input file
Следующее
От: Robert Treat
Дата:
Сообщение: Re: phppgadmin