<div dir="ltr">UPD. Just noticed that <br>SELECT ST_Transform('SRID=4326;POINT(0 0)'::geometry, 2000)<br>doesn't work either.<div>So it's not about user defined srids. The error happens at any access to public.spatial_ref_sys</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">пт, 25 июл. 2025 г. в 16:08, Alexander Trufanov <<a href="mailto:trufanovan@gmail.com">trufanovan@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>I have a Debian Bookworm-based system with Postgresql 15 and PostGis 3.3.2 on it.</div><div>It works well, but recently I was faced with a requirement to use ST_Clip() function with touching argument support. Thus I need PostGis 3.5.x+.</div><div><br></div><div>There was no PostGis newer than 3.3.2 in the official repos, but I managed to installed it with </div><div><br></div><div>```</div><div><p style="margin:10px 0px 0px;padding:0px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,"Droid Sans","Helvetica Neue",sans-serif;font-size:14px;outline:none">sudo apt install -y postgresql-common<br style="outline:none">sudo /usr/share/postgresql-common/pgdg/<a href="http://apt.postgresql.org.sh" target="_blank">apt.postgresql.org.sh</a> bookworm</p><p style="margin:10px 0px 0px;padding:0px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,"Droid Sans","Helvetica Neue",sans-serif;font-size:14px;outline:none">sudo apt install postgis=3.5* postgresql-15-postgis-3=3.5* postgresql-15-postgis-3-scripts=3.5*</p></div><div>```</div><div><br></div><div>Then I updated my Postgis extension.</div><div><br></div><div>And now I'm facing an unexpectable problem. All my stored procedures are working fine unless they are trying to use user-defined SRIDs from the public.spatial_ref_sys. If so, they fail with following error message:</div><div><br></div><div>"<span style="font-family:"Source Code Pro",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12px;letter-spacing:0.14994px">ERROR:  Unable to determine 'postgis' install schema  </span></div><div><span style="font-family:"Source Code Pro",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12px;letter-spacing:0.14994px">SQL state: XX000</span>"</div><div><br></div><div>For example, this works:</div><div>SELECT ST_Transform('SRID=4326;POINT(0 0)'::geometry, 4326)<br></div><div>and this is not:</div><div>SELECT ST_Transform('SRID=4326;POINT(0 0)'::geometry, 100100)<br></div><div><br></div><div>My 100100 srid record is:</div><div>select * from public.spatial_ref_sys where srid = 100100<br>100100, '', 1, 'GEOGCS["WGS 84",    DATUM["WGS_1984",        SPHEROID["WGS 84",6378137,298.257223563,            AUTHORITY["EPSG","7030"]],        AUTHORITY["EPSG","6326"]],    PRIMEM["Greenwich",0],    UNIT["degree",0.0174532925199433],    AUTHORITY["EPSG","4326"]]', '+proj=longlat +datum=WGS84 +no_defs'<br></div><div><br></div><div>I was trying to update this record in the table in case there is some trigger that should register it  in some new cache or config - but it does not help.</div><div><br></div><div>Is there any cache or something else  to clean in public.spatial_ref_sys for postgis 4.5.3?</div><div>Maybe user-defined srids should now be registered in another way?</div><div><br></div><div>Also the error message "<span style="font-family:"Source Code Pro",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12px;letter-spacing:0.14994px">Unable to determine 'postgis' install schema  </span>" is quite confusing.</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">With best regards,<br>Alexander Trufanov</div></div>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">With best regards,<br>Alexander Trufanov</div>