From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
Cc: | Nikhil Shetty <nikhil(dot)dba04(at)gmail(dot)com>, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: pg_upgrade failure due to dependencies |
Date: | 2025-07-01 15:30:02 |
Message-ID: | 3165866.1751383802@sss.pgh.pa.us |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> writes:
> On Tue, 2025-07-01 at 11:23 +0530, Nikhil Shetty wrote:
>> I was trying an upgrade from PostgreSQL 13 and PostGIS 3.1.2 TO PostgreSQL 15 and PostGIS 3.4.2 and got below error
>> pg_restore: error: could not execute query: ERROR: relation "public.spatial_ref_sys" does not exist
>> LINE 1: ...LECT proj4text, auth_name, auth_srid, srtext FROM public.spa...
>> ^
>> QUERY: SELECT proj4text, auth_name, auth_srid, srtext FROM public.spatial_ref_sys WHERE srid = 3857 LIMIT 1
> The PostGIS people must be misinformed.
> The fault is clearly theirs for marking the function st_transform(geometry, text, integer) as IMMUTABLE:
That's clearly pretty risky, but I don't understand the context here.
pg_dump always restores extensions first. Surely both this function
and the spatial_ref_sys table would be created by the PostGIS
extension(s)?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Nikhil Shetty | 2025-07-01 16:19:20 | Re: pg_upgrade failure due to dependencies |
Previous Message | Edward J. Sabol | 2025-07-01 11:10:36 | Re: pg_upgrade failure due to dependencies |