RE: Refactor ECPGconnect and allow IPv6 connection - Mailing list pgsql-hackers

From kuroda.hayato@fujitsu.com
Subject RE: Refactor ECPGconnect and allow IPv6 connection
Date
Msg-id TYAPR01MB5866705435593560CA862873F50A9@TYAPR01MB5866.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Re: Refactor ECPGconnect and allow IPv6 connection  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Refactor ECPGconnect and allow IPv6 connection  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-hackers
Dear Michael,

Thank you for replying!

> it does not strike me as a great idea to have a duplicate
> logic doing the parsing of URIs, even if libpq accepts multiple
> hosts/ports as an option.

Yeah, I agree your argument that duplicated parse function should be removed.

ECPG parses connection string because it uses PQconnectdbParams()
even if target is specified in the new-style,
hence my elementary idea is that the paring can be skipped if PQconnectdb() calls.

I will try to remake patches based on the idea.

Best Regards,
Hayato Kuroda
FUJITSU LIMITED




pgsql-hackers by date:

Previous
From: Brar Piening
Date:
Subject: Re: Doc patch for Logical Replication Message Formats (PG14)
Next
From: Amit Kapila
Date:
Subject: Re: Optionally automatically disable logical replication subscriptions on error