Example: Aggregate pushdown v2
This example shows aggregate pushdown between the foreign tables of the same remote HIVE/SPARK server to that remote HIVE/SPARK server.
Tables on HIVE/SPARK server:
Tables on Postgres server:
Enable/disable GUC for AGGREGATE pushdown queries at the session level:
Note
You can also enable/disable aggregate pushdown at the server/table level using a GUC. For more information, see CREATE SERVER and CREATE FOREIGN TABLE.