Vicky Vergara writes:
> From this message:
> https://www.postgresql.org/message-id/1585.1472410329%40sss.pgh.pa.us
> I deduced that in the code I can use
> PG_CATALOG_VERSION
No, sorry, thinko on my part. It's CATALOG_VERSION_NO, from
, that people usually use for this sort of thing.
That gives
Hello all
The postgreSQL version is needed internally in order to make the code work
because for example the type of funcctx->max_calls changed on 9.6
uint64_t result_count = 0;
...
#if PGSQL_VERSION > 95
funcctx->max_calls = result_count;
#else
funcctx->max_calls = (uint