mirror of
https://github.com/postgres/postgres.git
synced 2026-01-26 09:41:40 +03:00
plpython: Remove duplicate PyModule_Create()
This seems to have existed like this since Python 3 support was
added (commit dd4cd55c15), but it's unclear what this second call is
supposed to accomplish.
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Matheus Alcantara <matheusssilv97@gmail.com>
Reviewed-by: li carol <carol.li2025@outlook.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Discussion: https://www.postgresql.org/message-id/f31333f1-fbb7-4098-b209-bf2d71fbd4f3%40eisentraut.org
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user