<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 14, 2019 at 3:53 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">What does `Select version()` show?<br></blockquote><div><br></div><div>it is PG 10.6 </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
On Mon, Jan 14, 2019 at 11:46 AM Ahsan Hadi <<a href="mailto:ahsan.hadi@enterprisedb.com" target="_blank">ahsan.hadi@enterprisedb.com</a>> wrote:<br>
><br>
> Select CASE WHEN split_part(s,'.',1)::integer > 9 THEN<br>
> db1-# split_part(s,'.',1) || '0' ELSE split_part(s,'.', 1) ||<br>
> db1-# split_part(s,'.', 2) END AS v<br>
> db1-# FROM substring(version(), 'PostgreSQL ([0-9\.]+)') AS s;<br>
>  v<br>
> ---<br>
><br>
> (1 row)<br>
><br>
> On Mon, Jan 14, 2019 at 2:35 PM Raúl Marín Rodríguez <<a href="mailto:rmrodriguez@carto.com" target="_blank">rmrodriguez@carto.com</a>> wrote:<br>
>><br>
>> Hi Ahsan,<br>
>><br>
>> It seems there is some error with the version detection mechanism as<br>
>> it's detecting PG11+.<br>
>><br>
>> Can you please check what's the output of:<br>
>> {{{<br>
>> Select CASE WHEN split_part(s,'.',1)::integer > 9 THEN<br>
>> split_part(s,'.',1) || '0' ELSE split_part(s,'.', 1) ||<br>
>> split_part(s,'.', 2) END AS v<br>
>> FROM substring(version(), 'PostgreSQL ([0-9\.]+)') AS s;<br>
>> }}}<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><br>
><br>
><br>
><br>
> --<br>
> 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" rel="noreferrer" target="_blank">www.enterprisedb.com</a><br>
> EnterpriseDB Blog: <a href="http://blogs.enterprisedb.com/" rel="noreferrer" target="_blank">http://blogs.enterprisedb.com/</a><br>
> Follow us on Twitter: <a href="http://www.twitter.com/enterprisedb" rel="noreferrer" 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.<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><br>
<br>
<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>