Re: Pre-forking backend

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Pre-forking backend
Дата
Msg-id 13761.1003155511@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Pre-forking backend  (Lincoln Yeoh <lyeoh@pop.jaring.my>)
Ответы Re: Pre-forking backend  (Lincoln Yeoh <lyeoh@pop.jaring.my>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: New contrib/tsearch module for 7.2
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: ecpg - GRANT bug