Re: PostgreSQL users on webhosting

From: Jeff Davis <jdavis-pgsql(at)empires(dot)org>
To: Jeff <threshar(at)torgo(dot)978(dot)org>
Cc: Alan Garrison <alang(at)cronosys(dot)com>, PgSQL General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgreSQL users on webhosting
Date: 2005-01-05 20:40:45
Message-ID: 1104957645.2886.41.camel@jeff
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 2005-01-05 at 13:52 -0500, Jeff wrote:
[snip]
> You'd have to have separate shared buffers for each which would eat
> away from the filesystem cache. Not to mention overhead of having
> many more PG's running (in terms of just processes htat need to be
> managed and memory used by each).

True. Those are the costs.

> You'd also have to have the users
> connect to PG on an alternate port and that may irritate some.
>

You can also use unix local domain sockets. I'm not sure if that gains
much, but most web hosts don't allow tcp/ip connections anyway.

> In a web hosting (multi-user) environment it may make more sense. but
> you could also just give each user his own db and only allow sameuser
> access to each db via pg_hba.conf.
>

I would like to add that there are risks associated with doing that. If
one user fills up the disk (like with an infinite loop in a web app)
than that affects all database users, since it's running as the
"postgres" user. No more commits can happen at all.

Regards,
Jeff Davis

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mark 2005-01-05 20:58:17 Re: PostgreSQL users on webhosting
Previous Message Jeff Davis 2005-01-05 20:34:01 Re: PostgreSQL users on webhosting