Re: Pre-forking backend - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Pre-forking backend
Date
Msg-id 13761.1003155511@sss.pgh.pa.us
Whole thread Raw
In response to Re: Pre-forking backend  (Lincoln Yeoh <lyeoh@pop.jaring.my>)
Responses Re: Pre-forking backend
List pgsql-hackers
Lincoln Yeoh <lyeoh@pop.jaring.my> writes:
> Create a small program that makes a few connections to postgresql, does
> some initialization, preconnects to various DBs (or maybe limited to one DB
> specified on startup), and listens on one port/socket. It might not even
> prefork, just cache connections so first connection is slow, subsequent
> ones are cached along with the user-pass for faster authentication. 

> Then your apps can connect to that small program, authenticate, and get the
> relevant connection. Call it a "Listener" if you want ;).

Couple of problems...

(a) where is this outside program going to get authentication
information from?

(b) it seems that not only the authentication exchange, but also all
subsequent data exchange of each connection would have to go through
this additional program.  That middleman is going to become a
bottleneck.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: New contrib/tsearch module for 7.2
Next
From: Bruce Momjian
Date:
Subject: Re: ecpg - GRANT bug