Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oj3Lh-0002zF-NS for pgsql-general@arkaria.postgresql.org; Thu, 13 Oct 2022 18:54:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oj3Lg-0000rI-Hm for pgsql-general@arkaria.postgresql.org; Thu, 13 Oct 2022 18:54:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oj3Lg-0000r6-6c for pgsql-general@lists.postgresql.org; Thu, 13 Oct 2022 18:54:28 +0000 Received: from mout.gmx.net ([212.227.15.15]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oj3Le-0004Fy-6d for pgsql-general@postgresql.org; Thu, 13 Oct 2022 18:54:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1665687265; bh=L13khJ7Nw47lkeOn+ynBaliUN0CTKfm5WRFOX/ZiCVo=; h=X-UI-Sender-Class:To:From:Subject:Date; b=eM2p6YDQzb7vVVm42tHfqwBC+SxPlPfO3OfRRglyM8GFtsUGfdQNyCWoYmn3GW1rT JSgxgOZonkdlJPvIqUnQClxURuNQgpcnmm4deY7O17Mu6B3vqhOsGwR7j/mREiO++Q h6jPXJRXorm8QTloTPRkZREVi/Crhe8V2gu8aC5k= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.20] ([83.171.175.134]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N1wq3-1p7cZU0hc9-012IO1 for ; Thu, 13 Oct 2022 20:54:25 +0200 To: Postgres General From: Thomas Kellerer Subject: pg_upgrade to 15 fails on Windows because of xml_is_well_formed() Message-ID: Date: Thu, 13 Oct 2022 20:54:23 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:r8+9ybUWyf0AGCgS4BE28uMzUOQcMeaNva4u2vudAFpWFKxbbi+ 0P9THzEDcx/2J+iTU7M2ZAPCQSmdOsQ5bxyjGwoZEmpvi1ng1f1YW8uVq7SJDmm0LPDYfom NLpxZWjegOE31qEpxnrjtritexpD1RFEnkewOPiGRDdV7gGPQ2lHtnMvP9O4ml9LMf91C0s NKPlYu8WgjVqycB4R2Svw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:p1vXpT0gucQ=:P1jTTEOAj7XTBbByrzOjgG VfrNugayCxAAVZTMi9qOoLNP5Td8nExVnhx023KSjh6iVeIQlmIiLhsribXe0qZG+Qz0szO83 Q9ciLN1799ZSVd7QpGfw4pfjCp1vQPU0ERKcWoOikFC3Id7GFZJBOGkk5DMqfcUTpjpYsm4DY U60qrYtOhj43aF55b9i2aWwiVxIgHf8BWNZry0NtVgO0JFzmtt9T/w7U6kf7IO5EdoOMFyDs1 P2qsNm13BgStYNcQAjWyjXhWtptyRKCEIcFck/ALUPqZew8i7rFnu7q1Usm4MwpZcM3KAG93D otbeR/YQtWyA3xtZcB1L/tHYSziQYHzGmR1kr9XixPE0lDbA9qQoExIhb3bd1jQxVTFdJaMmt uFPRlMDJX3xhnHmBB0AddSWc5sWKQjxtBOnugCrXdZcDVl0zW4YTOdZh74XIkaEZ3MNpgmkqS gKEYRT0Y4+lLVlca3wQVlMU4LFo8sEGzAHn0PImwRmYPQAOxJ4Wlao546EgX38BtZWj8wIQtf IRjZ8QxrNwzvjKWg69i2RD0LCojK+Q8rXJfOQNzcIXykxMfnRVWKmEsN00EbhYcH3H9xe815J 3YgcVRdiwa/tthv1kuhaujymqILpG3Y77iC7k2yYWnW63LQ2OC8xak83YK5mvVUONmuz+CIch Ra2POYpRzNFEO6lesOmRFqYZvlwHSRZPe8b4lXbprtrn/87msghEX9cwfxnDp8KvUP3lHI80M L4uoQarAS12U/OSLI9rAF/+kaBzdvU3y0duB0i2tdgecm81gSFdc35dWIgQImcNjxirpXCCXR B2WM5YBr5v/By94i5VQ00NoHL/L3Oa0kJjPT8ArbaDcT6h2qi73kmnF64TQaaofIenTX1fTz1 rA9NHSNM7fc5C3fTxFugaSGy5cWp1tSzk0NJlTSHYmj5CkQcCz6fHnYNLZnX+3sPbCk5S+ceH oDdy/8ilXIr9nTaQOfTPpeE7utNIVwWH24M0qyvOioHWsH8GdWL8sfK7EOCk1l0H/UFa0egru 3wL45mQp6UtnCKxYUhCVnDZgs45xbESMnXjjUEWFvxRXt2pXR4kofpkl096WmdOBq0pDuBAXD bh2Px1GDQ8Yu+iqANVEgYAWELvzAVBGAIDm7j/U1xHKz0oBm7tXsp5Rus1jt+3trpXAEhp0IR Hlxlnc1O1LWdvGNGsYbW1quMxgtubf7ClNqeF9j3yzHNEKHKp064IjiFJ4ywhLPtZR/AUECO/ PmQ46MZmhXK8kyWH0vV29+d7VpxOqXpqm1yp4xorSrYDIFQLOJBe2eHDbabfbk1wAMftvVB6W hcsinL3dJZKhrsLvd4gEfnvOVy1GpRl9xI8wF6W5HddT9KESwFKxRMeMcK0ESkYs4kwKPmcKx +PPqlbQvDX23PPRnlZogRHyNLBFwZtrI8FkeQOi9Yc9KbB3dSVJiWml8cM14FUVm6+9a9CUuD K0sgn0yFl2wNm5EztxPZMVWfUwBuUsln2I2QK91Uo4rHe/uiudbSPCVUApTsLo102x+ayJTUy uNr699cDXbbM8VI+g2R0++/915TNPIeIbklokLGlBZlDC List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk When trying pg_upgrade to upgrade Postgres 14 to 15 on Windows 10 this fails with: pg_restore: creating FUNCTION "public.xml_is_well_formed("text")" pg_restore: while PROCESSING TOC: pg_restore: from TOC entry 647; 1255 23216 FUNCTION xml_is_well_formed("text") postgres pg_restore: error: could not execute query: ERROR: could not find function "xml_is_well_formed" in file "c:/Program Files/PostgreSQL/15/lib/pgxml.dll" Command was: CREATE FUNCTION "public"."xml_is_well_formed"("text") RETURNS boolean LANGUAGE "c" IMMUTABLE STRICT AS '$libdir/pgxml', 'xml_is_well_formed'; The same error occurs when trying pg_dump/pg_restore, but the restore continues without further errors and the database is usable after that. I don't understand why this functions is included in the dump in the first place. A pristine 15 cluster already contains that function. Any ideas? Thomas