Re: [PoC] load balancing in libpq - Mailing list pgsql-hackers

From Euler Taveira
Subject Re: [PoC] load balancing in libpq
Date
Msg-id 505F14FE.7000103@timbira.com
Whole thread Raw
In response to [PoC] load balancing in libpq  (Satoshi Nagayasu <snaga@uptime.jp>)
Responses Re: [PoC] load balancing in libpq
List pgsql-hackers
On 23-09-2012 07:50, Satoshi Nagayasu wrote:
> I have just written the first PoC code to enable load balancing
> in the libpq library.
> 
Your POC is totally broken. Just to point out two problems: (i) semicolon (;)
is a valid character for any option in the connection string and (ii) you
didn't think about PQsetdb[Login](), PQconnectdbParams() and
PQconnectStartParams(). If you want to pursue this idea, you should think a
way to support same option multiple times (one idea is host1, host2, etc).

Isn't it easier to add support on your application or polling software?


--   Euler Taveira de Oliveira - Timbira       http://www.timbira.com.br/  PostgreSQL: Consultoria, Desenvolvimento,
Suporte24x7 e Treinamento
 



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [ADMIN] pg_upgrade from 9.1.3 to 9.2 failed
Next
From: Rural Hunter
Date:
Subject: Re: [ADMIN] pg_upgrade from 9.1.3 to 9.2 failed