Re: User privileges in web database applications - Mailing list pgsql-general

From John DeSoi
Subject Re: User privileges in web database applications
Date
Msg-id F0490AB7-D567-41EC-9326-75FD554FDF71@pgedit.com
Whole thread Raw
In response to User privileges in web database applications  (Antonis Christofides <anthony@itia.ntua.gr>)
Responses Re: User privileges in web database applications  (Tim Hart <tjhart@mac.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_restore: [archiver] could not open input file
Next
From: Robert Treat
Date:
Subject: Re: phppgadmin