641 #if POSTGIS_PROJ_VERSION < 60
642 elog(ERROR,
"%s is not supported with Proj < 6.0", __func__);
644 FuncCallContext *funcctx;
645 MemoryContext oldcontext;
648 text* auth_name = PG_GETARG_TEXT_P(0);
657 if (SRF_IS_FIRSTCALL())
663 funcctx = SRF_FIRSTCALL_INIT();
664 oldcontext = MemoryContextSwitchTo(funcctx->multi_call_memory_ctx);
667 funcctx->user_fctx = state;
668 MemoryContextSwitchTo(oldcontext);
672 funcctx = SRF_PERCALL_SETUP();
673 state = funcctx->user_fctx;
678 SRF_RETURN_DONE(funcctx);
683 result = PointerGetDatum(auth_code);
687 SRF_RETURN_NEXT(funcctx,
result);
690 SRF_RETURN_DONE(funcctx);
691 SRF_RETURN_DONE(funcctx);
char result[OUT_DOUBLE_BUFFER_SIZE]
static struct srs_data * srs_state_init()
static void srs_state_codes(const char *auth_name, struct srs_data *state)
struct srs_entry * entries