pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Stark <gsstark@mit.edu>
To: Chad Robinson <taskswap@yahoo.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Problem with asynchronous connect in 8.0.1
Date: 08 Feb 2005 22:36:58 -0500
Message-ID: <87pszae751.fsf@stark.xeocode.com> (raw)
In-Reply-To: <20050208193032.29435.qmail@web11610.mail.yahoo.com>
References: <20050208193032.29435.qmail@web11610.mail.yahoo.com>


Chad Robinson <taskswap@yahoo.com> writes:

> It seems so. I have to have this many connections, because for security and
> privacy reasons the processes involved are isolated. There are about
> 1000-1200 per box, 4-8 boxes, depending on how I load-balance things. Unless
> you know some way to REDUCE memory usage per Postgres client connection,
> we'll see how things go with pgpool.

It sounds to me like you might even want something more constricted than
pgpool. Perhaps you want to write some sort of daemon that keeps a single
connection to the database and performs these short simple queries in response
to simple requests it receives from the clients.

This could actually improve security since it would limit what types of
queries can be performed and what data can be retrieved. You could use
something like ldap or snmp or even just a simple xdr rpc call instead of
writing database queries into your application.

-- 
greg




view thread (6+ messages)

Message-ID: <87pszae751.fsf@stark.xeocode.com>
Permalink:  ../87pszae751.fsf@stark.xeocode.com/
Also on:    postgresql.org/message-id/87pszae751.fsf@stark.xeocode.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: gsstark@mit.edu, taskswap@yahoo.com, tgl@sss.pgh.pa.us
  Subject: Re: Problem with asynchronous connect in 8.0.1
  In-Reply-To: <87pszae751.fsf@stark.xeocode.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox