假设我有一个类似的查询
select * from remote_table
join local_table using(common_key)
其中 remote_table 是一个FOREIGN TABLEwithpostgres_fdw并且local_table是一个常规表。
local_table小(100 行)和remote_table大(数百万行)。
看起来远程表被完全拉出并在本地加入,而将较小的表发送到远程服务器并远程加入会更有效。
有没有办法让 postgres_fdw 做到这一点?