Re: proxying connections

Поиск
Список
Период
Сортировка
От Federico Balbi
Тема Re: proxying connections
Дата
Msg-id Pine.GSO.4.44.0409270843300.8096-100000@pandora1.cs.utsa.edu
обсуждение исходный текст
Ответ на proxying connections  (Kundham Saare <oxb1001001001@yahoo.com>)
Список pgsql-general
> I am trying to develop a proxy for postgresql that
> will distribute the load between multiple postgresql
> database servers and have so far failed to even get a
> connection.
> What I am trying to do is to create a TCP socket
> server and a client and forward all requests coming
> into the server through the client and vice versa.

In the past I wrote a similar thing in C to forward TCP requests.
I think you have to use either fork() or threads in order to keep on
listening on connection while you serve others. I used fork() at the time
but I would use threads nowadays. Anyway, after I saw the rising of all
these replication mechanism I wonder if such utility would be still
necessary.

Ciao,
Federico


В списке pgsql-general по дате отправления:

Предыдущее
От: Mike Rylander
Дата:
Сообщение: Re: checksum
Следующее
От: Tom Lane
Дата:
Сообщение: Re: could not create socket for statistics collector: Protocol not supported