Skip to content

Commit

Permalink
*.c Not supporting postgres 9x
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvergara committed Aug 6, 2024
1 parent dde57b0 commit 16daa4d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/optimize/optimize.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,7 @@ _vrp_optimize(PG_FUNCTION_ARGS) {
&result_tuples,
&result_count);

#if PGSQL_VERSION > 95
funcctx->max_calls = result_count;
#else
funcctx->max_calls = (uint32_t)result_count;
#endif
funcctx->user_fctx = result_tuples;
if (get_call_result_type(fcinfo, NULL, &tuple_desc)
!= TYPEFUNC_COMPOSITE) {
Expand Down
4 changes: 0 additions & 4 deletions src/vroom/vroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,7 @@ PGDLLEXPORT Datum _vrp_vroom(PG_FUNCTION_ARGS) {
&result_tuples,
&result_count);

#if PGSQL_VERSION > 95
funcctx->max_calls = result_count;
#else
funcctx->max_calls = (uint32_t)result_count;
#endif
funcctx->user_fctx = result_tuples;
if (get_call_result_type(fcinfo, NULL, &tuple_desc)
!= TYPEFUNC_COMPOSITE) {
Expand Down

0 comments on commit 16daa4d

Please sign in to comment.