Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vvf1H-00CXwm-1s for pgsql-bugs@arkaria.postgresql.org; Thu, 26 Feb 2026 17:19:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvf1G-00EZRo-1i for pgsql-bugs@arkaria.postgresql.org; Thu, 26 Feb 2026 17:19:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vvdhr-00Dmsu-16 for pgsql-bugs@lists.postgresql.org; Thu, 26 Feb 2026 15:55:15 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vvdhn-00000001PrF-1k0F for pgsql-bugs@lists.postgresql.org; Thu, 26 Feb 2026 15:55:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Message-ID:Date:Reply-To:Cc:From:To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Content-ID: Content-Description:In-Reply-To:References; bh=+O2b26zy5KXS2rerqqHZL+jvFicOZMMe0/e7vjbb8YM=; b=mLqyocT4fVCYm9tCbEw9S1/Fo3 fc8n9GEI8Zd+462wrTiiWuyGVbSd/B/mlrLdgiZ4pozVgVDrGa1WtYpsyKaHOUxDUsycteIJXLfmu GUKo1jA/zATLrL+HxvYzRuXSQo4DAj5c272LkrLSlxyb2ARYD4MkugEqmo2tZclh29sth/jndaBs9 f81ommdu+50NcJZvikKav9h+OiEMpvM0/z+IH9eDz6yRrPjho54sg/eQ7JXydBJuuf8Hqg/tI6gco odUYEqxId1d1tnMuV9843fYtiS06oG6qdWoKZBvcUx6LpXsIBqY/QH8oSsS+Ri/JVb23DZDIlnZT3 z0Go0sOw==; Received: from wrigleys.postgresql.org ([2a02:16a8:dc51::60]) by mahout.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vvdhh-003shi-0s for pgsql-bugs@lists.postgresql.org; Thu, 26 Feb 2026 15:55:06 +0000 Received: from localhost ([127.0.0.1] helo=wrigleys.postgresql.org) by wrigleys.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvdhf-00CV7q-2W for pgsql-bugs@lists.postgresql.org; Thu, 26 Feb 2026 15:55:03 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #19419: Cannot create custom functions using python3u To: pgsql-bugs@lists.postgresql.org From: PG Bug reporting form Cc: yfdd12138@gmail.com Reply-To: yfdd12138@gmail.com, pgsql-bugs@lists.postgresql.org Date: Thu, 26 Feb 2026 15:54:10 +0000 Message-ID: <19419-08929ad877348341@postgresql.org> X-Auto-Response-Suppress: All Auto-Submitted: auto-generated List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The following bug has been logged on the website: Bug reference: 19419 Logged by: yafei wu Email address: yfdd12138@gmail.com PostgreSQL version: 18.2 Operating system: windows Description: =20 When I was installing the Windows version of PostgreSQL 18.2.1, I executed the command "CREATE EXTENSION plpython3u;". Error message [2026-02-26 23:35:02] [58P01] Error: Unable to load library "D:/postgresql/PostgreSQL/18/lib/plpython3.dll": The specified module could not be found. [2026-02-26 23:35:02] At location: SQL statement "CREATE FUNCTION plpython3_call_handler() RETURNS language_handler" [2026-02-26 23:35:02] LANGUAGE c AS '$libdir/plpython3'" [2026-02-26 23:35:02] Extension script file "plpython3u--1.0.sql", near line 3 When I placed the python313.dll file in the installation directory of Python 3.13 under the C:\Windows\System32 directory, and executed the command "CREATE EXTENSION plpython3u;" Success, but when creating the Python custom function, an error occurred. [2026-02-26 23:45:01] An I/O error occurred while sending to the backend. [2026-02-26 23:45:01] Received an irrecoverable error. The connection has been damaged.