On 07/01/15 00:05, Jim Nasby wrote:
> On 1/6/15, 8:17 AM, Kouhei Kaigai wrote:
>> The attached patch is newer revision of custom-/foreign-join
>> interface.
>
> Shouldn't instances of
>
> scan_relid > 0
>
> be
>
> scan_relid != InvalidOid
>
Ideally, they should be OidIsValid(scan_relid)
--
Petr Jelinek http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services