The following query is failed on Postgres 12. It is OK on Postgres 9.6.17
SELECT sum(value1) FROM t4 GROUP BY time; | SELECT sum(value1) FROM t4 GROUP BY time;
sum | ERROR: influxdb_fdw : time() is a function and expects at least one argument
----- | ---------------------------------------------------------------------------------
2 | ---------------------------------------------------------------------------------
10 | ---------------------------------------------------------------------------------
1 | ---------------------------------------------------------------------------------
20 | ---------------------------------------------------------------------------------
30 | ---------------------------------------------------------------------------------
3 | ---------------------------------------------------------------------------------
(6 rows)
The following query is failed on Postgres 12. It is OK on Postgres 9.6.17