Re: Optimization for updating foreign tables in Postgres FDW - Mailing list pgsql-hackers

From Etsuro Fujita
Subject Re: Optimization for updating foreign tables in Postgres FDW
Date
Msg-id 570B5D40.6080203@lab.ntt.co.jp
Whole thread Raw
In response to Re: Optimization for updating foreign tables in Postgres FDW  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: Optimization for updating foreign tables in Postgres FDW  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
On 2016/04/11 12:30, Michael Paquier wrote:
> +                       if ((cancel = PQgetCancel(entry->conn)))
> +                       {
> +                           PQcancel(cancel, errbuf, sizeof(errbuf));
> +                           PQfreeCancel(cancel);
> +                       }
> Wouldn't it be better to issue a WARNING here if PQcancel does not succeed?

Seems like a good idea.  Attached is an updated version of the patch.

Thanks for the review!

Best regards,
Etsuro Fujita

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: VS 2015 support in src/tools/msvc
Next
From: Masahiko Sawada
Date:
Subject: Re: Support for N synchronous standby servers - take 2