From 3263a893fb1d2b36a44c13da701e44c805ed03f6 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 15 Jan 2026 10:24:49 +0100 Subject: [PATCH] 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. Reviewed-by: Chao Li Reviewed-by: Matheus Alcantara Reviewed-by: li carol Reviewed-by: Kirill Reshke Discussion: https://www.postgresql.org/message-id/f31333f1-fbb7-4098-b209-bf2d71fbd4f3%40eisentraut.org --- 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 0d663ac5110..72867388653 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 */