Re: exceptional result of postres_fdw external table joining local table - Mailing list pgsql-bugs

From Tom Lane
Subject Re: exceptional result of postres_fdw external table joining local table
Date
Msg-id 2665266.1675697664@sss.pgh.pa.us
Whole thread Raw
In response to exceptional result of postres_fdw external table joining local table  ("Qu, Mischa, Majorel China" <mischa.qu@majorel.cn>)
Responses 答复: exceptional result of postres_fdw external table joining local table  ("Qu, Mischa, Majorel China" <mischa.qu@majorel.cn>)
List pgsql-bugs
"Qu, Mischa, Majorel China" <mischa.qu@majorel.cn> writes:
> But when I run some full table scans and found a problems. the results of the following sql were different.

> Method 1: directly join external table and local table
> select count(distinct user_id),count(distinct member_code)
> from a_fdw t1
> join b as t6 on t1.user_id=t6.tags ->> '10'::varchar(50)
> where coalesce(user_id,'') <> '';
> -- result: 50739 50845

What sort of plan is that query using?  If it's a merge join, I'd
bet that the problem is related to local and remote servers not
having the same default collation.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: WAL segments removed from primary despite the fact that logical replication slot needs it.
Next
From: Tom Lane
Date:
Subject: Re: BUG #17776: Connections are terminated unexpectedly sometimes