v1-0003-plpython-Remove-duplicate-PyModule_Create.patch
text/plain
Filename: v1-0003-plpython-Remove-duplicate-PyModule_Create.patch
Type: text/plain
Part: 2
Message:
PL/Python initialization cleanup
From a9d8b839306be227a1adce0c4c3605fc3114736b Mon Sep 17 00:00:00 2001 From: Peter Eisentraut <peter@eisentraut.org> Date: Tue, 30 Dec 2025 22:17:57 +0100 Subject: [PATCH v1 3/4] plpython: Remove duplicate PyModule_Create() This seems to have existed like this since Python 3 support was added (commit dd4cd55c158), but it's unclear what this second call is supposed to accomplish. --- src/pl/plpython/plpy_plpymodule.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pl/plpython/plpy_plpymodule.c b/src/pl/plpython/plpy_plpymodule.c index 194739c3db6..2d76c6a5573 100644 --- a/src/pl/plpython/plpy_plpymodule.c +++ b/src/pl/plpython/plpy_plpymodule.c @@ -151,8 +151,6 @@ PLy_init_plpy(void) PLy_subtransaction_init_type(); PLy_cursor_init_type(); - PyModule_Create(&PLy_module); - /* * initialize main module, and add plpy */ -- 2.52.0