<div dir="ltr">Hi,<div><br></div><div>By the looks of it - you have a geography, not geometry, column, with a SRID set. As far as I remember, geography looks up the SRID in the spatial_ref_sys table to check if it's indeed a degrees-on-a-spheroid one. This probably needs a ticket on <a href="https://trac.osgeo.org/postgis/">https://trac.osgeo.org/postgis/</a>.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 2, 2019 at 5:59 AM James Sewell <<a href="mailto:james.sewell@jirotech.com">james.sewell@jirotech.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"><div dir="ltr">Hi all,<div><br></div><div>I'm upgrading from 9.6 -> 11. Both versions have PostGIS 2.5.1.</div><div><br></div><div>The upgrade starts then I see this in the logs:</div><div><br></div><div><font face="monospace">pg_restore: [archiver (db)] could not execute query: ERROR:  relation "public.spatial_ref_sys" does not exist<br>LINE 39:     "location_pt" "public"."geography"(Point,4283),</font></div><div><font face="monospace"><br></font></div><div><font face="arial, sans-serif">Above this I can see:</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="monospace">pg_restore: creating EXTENSION "postgis"</font></div><div><font face="monospace"><br></font></div><div>This is created fine - it just doesn't make the PostGIS tables in any schema?</div><div><br></div><div>Has anyone seen anything like this before?</div><div><br></div><div>Cheers,</div><div><br>James Sewell,</div><div><div dir="ltr" class="gmail-m_1111528679662009795gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>

<br>
<hr style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.5455px;line-height:normal"><font size="1" color="Gray" face="Arial" style="line-height:normal">The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.</font>_______________________________________________<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"><div dir="ltr"><div><div>Darafei Praliaskouski</div><div>Support me: <a href="http://patreon.com/komzpa" target="_blank">http://patreon.com/komzpa</a></div></div></div></div>