<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Aptos;}
@font-face
        {font-family:Menlo;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt'>Yap that was fixed in PostGIS 3.3.3.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>The change there was to support a change in PG16, so you shouldn’t need it for upgrading from PG13 to PG15.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>Are you using postgis_raster or you just have it installed?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>If you don’t need postgis_raster, I would suggest uninstalling it before upgrading. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Nikhil Shetty <nikhil.dba04@gmail.com> <br><b>Sent:</b> Saturday, March 16, 2024 10:55 AM<br><b>To:</b> PostGIS Users Discussion <postgis-users@lists.osgeo.org><br><b>Subject:</b> Database crash when creating raster_in function<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi Team,<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I am trying to upgrade the postgres database from PG13 to PG15. pg_upgrade is crashing with below error when creating the raster_in function<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><p class=MsoNormal>pg_restore: creating FUNCTION "public.raster_in("cstring")"<br>pg_restore: while PROCESSING TOC:<br>pg_restore: from TOC entry 394; 1255 16439 FUNCTION raster_in("cstring") postgres<br>pg_restore: error: could not execute query: server closed the connection unexpectedly<br>This probably means the server terminated abnormally<br>before or while processing the request.<br>Command was: CREATE FUNCTION "public"."raster_in"("cstring") RETURNS "public"."raster"<br>    LANGUAGE "c" IMMUTABLE STRICT PARALLEL SAFE<br>    AS '$libdir/postgis_raster-3', 'RASTER_in';<o:p></o:p></p></blockquote><p style='margin:0in;font-stretch:normal;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal'><span style='font-size:10.0pt;font-family:"Menlo",serif;color:black'><o:p> </o:p></span></p><p style='margin:0in;font-stretch:normal;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal'><span style='font-size:10.0pt;font-family:"Menlo",serif;color:black'><o:p> </o:p></span></p><p style='margin:0in;font-stretch:normal;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal'><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:black'>PostGIS version : <b>3.3.5</b></span><span style='font-size:10.0pt;color:black'><o:p></o:p></span></p><p style='margin:0in;font-stretch:normal;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal'><span style='font-size:10.0pt;color:black'><o:p> </o:p></span></p><p style='margin:0in;font-stretch:normal;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal'><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:black'>This looks similar to the issue mentioned in </span><span style='color:#222222'><a href="https://trac.osgeo.org/postgis/ticket/5277" target="_blank">https://trac.osgeo.org/postgis/ticket/5277</a>. Is this fixed in 3.3.5 ?</span><span style='font-size:10.0pt;color:black'><o:p></o:p></span></p><p style='margin:0in;font-stretch:normal;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal'><span style='font-size:10.0pt;color:black'><o:p> </o:p></span></p><p style='margin:0in;font-stretch:normal;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal'><span style='color:#222222'>Thanks,</span><span style='font-size:10.0pt;color:black'><o:p></o:p></span></p><p style='margin:0in;font-stretch:normal;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal'><span style='color:#222222'>Nikhil</span><span style='font-size:10.0pt;color:black'><o:p></o:p></span></p></div></div></div></div></body></html>