<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I like those tricks to get Postgis schema without the fcinfo. If I <br>
recall correctly somebody (mobilitydb?) had some issues related to it <br>
because they were calling Postgis from C without passing the fcinfo. <br>
This change should avoid that, I think.<br></blockquote><div><br></div><div>Indeed, in MobilityDB we need to save the fcinfo in a global variable. When computing the temporal generalizations of functions such as ST_DWithin, ST_Distance and ST_Azimuth involving a moving object (typically containing thousands of couples point@timestamptz) we need to iterate through these thousands of couples and make calls such as the following one</div><div><br></div><div>CallerFInfoFunctionCall2(geography_distance, (fetch_fcinfo())->flinfo,<br>    InvalidOid, geog1, geog2);<br></div><div><br></div><div>We are doing this in</div><div><br></div><div> POSTGIS="2.5.5" [EXTENSION] PGSQL="130" GEOS="3.9.1dev-CAPI-1.14.1" PROJ="Rel. 6.3.1, February 10th, 2020" GDAL="GDAL 3<br>.0.4, released 2020/01/28" LIBXML="2.9.10" LIBJSON="0.13.1" RASTER<br></div><div><br></div><div>Please instruct how to proceed if PostGIS behaviour changes.</div><div><br></div><div>Regards</div><div><br></div><div>Esteban</div><div><br></div></div></div>