pgsql: Fix resource leaks in PL/Python error reporting, redux.

2025-10-23 Thread Tom Lane
Fix resource leaks in PL/Python error reporting, redux. Commit c6f7f11d8 intended to prevent leaking any PyObject reference counts in edge cases (such as out-of-memory during string construction), but actually it introduced a leak in the normal case. Repeating an error-trapping operation often eno

pgsql: Fix resource leaks in PL/Python error reporting, redux.

2025-10-23 Thread Tom Lane
Fix resource leaks in PL/Python error reporting, redux. Commit c6f7f11d8 intended to prevent leaking any PyObject reference counts in edge cases (such as out-of-memory during string construction), but actually it introduced a leak in the normal case. Repeating an error-trapping operation often eno

pgsql: Fix resource leaks in PL/Python error reporting, redux.

2025-10-23 Thread Tom Lane
Fix resource leaks in PL/Python error reporting, redux. Commit c6f7f11d8 intended to prevent leaking any PyObject reference counts in edge cases (such as out-of-memory during string construction), but actually it introduced a leak in the normal case. Repeating an error-trapping operation often eno

pgsql: Fix resource leaks in PL/Python error reporting, redux.

2025-10-23 Thread Tom Lane
Fix resource leaks in PL/Python error reporting, redux. Commit c6f7f11d8 intended to prevent leaking any PyObject reference counts in edge cases (such as out-of-memory during string construction), but actually it introduced a leak in the normal case. Repeating an error-trapping operation often eno

pgsql: Fix resource leaks in PL/Python error reporting, redux.

2025-10-23 Thread Tom Lane
Fix resource leaks in PL/Python error reporting, redux. Commit c6f7f11d8 intended to prevent leaking any PyObject reference counts in edge cases (such as out-of-memory during string construction), but actually it introduced a leak in the normal case. Repeating an error-trapping operation often eno

pgsql: Fix resource leaks in PL/Python error reporting, redux.

2025-10-23 Thread Tom Lane
Fix resource leaks in PL/Python error reporting, redux. Commit c6f7f11d8 intended to prevent leaking any PyObject reference counts in edge cases (such as out-of-memory during string construction), but actually it introduced a leak in the normal case. Repeating an error-trapping operation often eno

pgsql: Fix resource leaks in PL/Python error reporting, redux.

2025-10-23 Thread Tom Lane
Fix resource leaks in PL/Python error reporting, redux. Commit c6f7f11d8 intended to prevent leaking any PyObject reference counts in edge cases (such as out-of-memory during string construction), but actually it introduced a leak in the normal case. Repeating an error-trapping operation often eno