From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | David Fetter <david(at)fetter(dot)org>, Erik Rijkers <er(at)xs4all(dot)nl>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: POLA violation with \c service= |
Date: | 2015-02-21 06:17:47 |
Message-ID: | CAFj8pRACOapOLh9DPnw4mnqRjEjrUcLtb+tLBvLJFR3sHhqb7g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2015-02-20 22:25 GMT+01:00 Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>:
> David Fetter wrote:
> > On Fri, Feb 20, 2015 at 05:55:20PM -0300, Alvaro Herrera wrote:
>
> > > Gave this patch a look. In general it looks pretty good, but there is
> > > one troublesome point: it duplicates two functions from libpq into
> psql,
> > > including the URI designators. This doesn't look very nice.
> >
> > My thinking behind this was that the patch is a bug fix and intended
> > to be back-patched, so I wanted to mess with as little infrastructure
> > as possible.
>
> Oh, so this is to be backpatched? Yeah, I guess in the backbranch case
> it's acceptable to duplicate some bits, but I don't think this gives us
> blanket permission to do it in master. So we need two versions of the
> patch.
>
> > > 2. export it in libpgcommon. If we choose this option we should
> > > probably rename those functions, as in the attached patch.
> >
> > I'm not super attached to the names.
>
> Me neither. Suggestions welcome.
>
I have not any problem with these names - it is related what it does.
"libpq_connstring_uri_prefix_length" is 100% correct
"libpq_connstring_is_recognized" is correct too .. the name is maybe long,
but this functions are not used 100x per day
Regards
Pavel
>
> --
> Álvaro Herrera http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
>
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2015-02-21 06:19:10 | Re: POLA violation with \c service= |
Previous Message | Pavel Stehule | 2015-02-21 06:04:22 | Re: POLA violation with \c service= |