Re: Feature request: Connection string parsing for postgres_fdw - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Feature request: Connection string parsing for postgres_fdw
Date
Msg-id X+U6pACChITXMEvG@paquier.xyz
Whole thread Raw
In response to Re: Feature request: Connection string parsing for postgres_fdw  (Ian Lawrence Barwick <barwick@gmail.com>)
List pgsql-hackers
On Fri, Dec 25, 2020 at 09:59:09AM +0900, Ian Lawrence Barwick wrote:
> Basically a wrapper around PQconninfoParse(), I've had the code knocking around
> for a while now and finally got round to packaging it into an
> extension [1]. It's
> on my todo list to submit a patch based on this to core, as it seems Generally
> Useful To Have.
>
> [1] https://github.com/ibarwick/conninfo

I think that this would be useful.  If you send a patch to core, be
careful that the backend code should not directly link to libpq.  This
is of course fine if done from an extension, though this is not really
something related to postgres_fdw.  Or just refactor the code into
src/common/ and then consume the refactored pieces from libpq and the
backend.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Ian Lawrence Barwick
Date:
Subject: Re: Feature request: Connection string parsing for postgres_fdw
Next
From: vignesh C
Date:
Subject: Re: Parallel Inserts in CREATE TABLE AS