Re: [PoC] load balancing in libpq

From: Euler Taveira <euler(at)timbira(dot)com>
To: Satoshi Nagayasu <snaga(at)uptime(dot)jp>
Cc: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PoC] load balancing in libpq
Date: 2012-09-23 13:56:14
Message-ID: 505F14FE.7000103@timbira.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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, Suporte 24x7 e Treinamento

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rural Hunter 2012-09-23 14:20:08 Re: [ADMIN] pg_upgrade from 9.1.3 to 9.2 failed
Previous Message Peter Eisentraut 2012-09-23 12:33:48 Re: [ADMIN] pg_upgrade from 9.1.3 to 9.2 failed