Closed amwps290 closed 2 years ago
There's no way for OGR to pushdown the Count(*) aggregate to your remote database, so the execution involves retrieving all the rows locally to Postgres and counting them there. I'm happy to see you got a result at all! In general OGR can only push down simple filters (=, <, >, LIKE) to the remote. If you want full pushdown to Oracle, use a purpose built FDW like the oracle_fdw.
postgres:13.5 ogr_fdw: master
I create a foreign server as follow :
import schema
when i execute
select count(*) from ocishcema.tablenname ;
it's very slow.
the explain Analyse as follows: