<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>This seems to be broken again for pg_upgrade?</div><div><br></div><div>Upgrading from PG 13 -> 16 and getting the same error as above. </div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ERROR:  relation "public.spatial_ref_sys" does not exist</blockquote><div><br></div></div><div>This was fixed here: <a href="https://github.com/postgis/postgis/blob/master/postgis/gserialized_typmod.c#L150" target="_blank">https://github.com/postgis/postgis/blob/master/postgis/gserialized_typmod.c#L150</a></div><div><br></div><div>Could it be the code block added above this since 2019? The issue was PostGIS reading pg_spatial_ref_sys before it's populated in a pg_upgrade.</div><div><br></div><div>Cheers,</div><div>James</div><div><br><br></div></div><div><div class="gmail_quote"><br></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>