<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 14, 2019 at 5:48 PM Raúl Marín Rodríguez <<a href="mailto:rmrodriguez@carto.com">rmrodriguez@carto.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> I don't think we have faced this issue with upgrade in the past...<br>
<br>
Before PG11, Postgis didn't need to check the Postgresql release at runtime<br>
in the SQL code. As a reference, in the function `_postgis_pgsql_version`<br>
we are doing the same pattern matching (`PostgreSQL ([0-9\.]+)`).<br>
<br>
I think we should be able to change it and use `server_version_num` instead:<br>
{{{<br>
SELECT current_setting('server_version_num');<br>
}}}<br>
<br>
Can you confirm that in your case that shows 10613 or something like that?<br></blockquote><div><br></div><div><span style="color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px"> SELECT current_setting('server_version_num');</span><br style="outline:none;color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px"><span style="color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px">current_setting </span><br style="outline:none;color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px"><span style="color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px">-----------------</span><br style="outline:none;color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px"><span style="color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px">100006</span><br style="outline:none;color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px"><span style="color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px">(1 row)</span><br></div><div><span style="color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px"><br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
If that's the case, I'll open a ticket to address it and backport it.<br>
<br>
-- <br>
Raúl Marín Rodríguez<br>
<a href="http://carto.com" rel="noreferrer" target="_blank">carto.com</a><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Ahsan Hadi<br>Snr Director Product Development<br>EnterpriseDB Corporation<br>The Enterprise Postgres Company<br><br>Phone: +92-51-8358874    <br>Mobile: +92-333-5162114<br><br>Website: <a href="http://www.enterprisedb.com" target="_blank">www.enterprisedb.com</a><br>EnterpriseDB Blog: <a href="http://blogs.enterprisedb.com/" target="_blank">http://blogs.enterprisedb.com/</a><br>Follow us on Twitter: <a href="http://www.twitter.com/enterprisedb" target="_blank">http://www.twitter.com/enterprisedb</a><br><br>This e-mail message (and any attachment) is intended for the use of the individual or entity to whom it is addressed. This message contains information from EnterpriseDB Corporation that may be privileged, confidential, or exempt from disclosure under applicable law. If you are not the intended recipient or authorized to receive this for the intended recipient, any use, dissemination, distribution, retention, archiving, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and delete this message.</div></div>