Re: dblink performance regression - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: dblink performance regression
Date
Msg-id AA6649D2-A0EA-4620-8263-59C959CFDA2D@gmail.com
Whole thread Raw
In response to Re: dblink performance regression  (Joe Conway <mail@joeconway.com>)
List pgsql-hackers
> On 2013/12/08, at 10:50, Joe Conway <mail@joeconway.com> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>> On 12/07/2013 05:41 PM, Fabrízio de Royes Mello wrote:
>>
>> On Sat, Dec 7, 2013 at 11:20 PM, Michael Paquier
>> <michael.paquier@gmail.com <mailto:michael.paquier@gmail.com>>
>> wrote:
>>>>
>>>> IMHO is more elegant create a procedure to encapsulate the code
>>>> to avoid redundancy.
>>> Yep, perhaps something like PQsetClientEncodingIfDifferent or
>>> similar would make sense.
>>
>> Well I think at this first moment we can just create a procedure
>> inside the dblink contrib and not touch in libpq.
>
> Maybe a libpq function could be done for 9.4, but not for back branches.
Agreed as this would change the spec of libpq between minor releases. Sorry for not being clear myself.

>  -- we're only talking about two lines of added redundancy which is
> less lines of code than a new function would add. But if we create
> PQsetClientEncodingIfDifferent() (or whatever) we can remove those
> extra lines in 9.4 ;-)



--
Michael
(Sent from my mobile phone)




pgsql-hackers by date:

Previous
From: Fabrízio de Royes Mello
Date:
Subject: Re: dblink performance regression
Next
From: Gavin Flower
Date:
Subject: Re: ANALYZE sampling is too good