pgsql: Repair memory leaks in plpython.

2025-01-11 Thread Tom Lane
Repair memory leaks in plpython. PLy_spi_execute_plan (PLyPlan.execute) and PLy_cursor_plan (plpy.cursor) use PLy_output_convert to convert Python values into Datums that can be passed to the query-to-execute. But they failed to pay much attention to its warning that it can leave "cruft generated

pgsql: Repair memory leaks in plpython.

2025-01-11 Thread Tom Lane
Repair memory leaks in plpython. PLy_spi_execute_plan (PLyPlan.execute) and PLy_cursor_plan (plpy.cursor) use PLy_output_convert to convert Python values into Datums that can be passed to the query-to-execute. But they failed to pay much attention to its warning that it can leave "cruft generated

pgsql: Repair memory leaks in plpython.

2025-01-11 Thread Tom Lane
Repair memory leaks in plpython. PLy_spi_execute_plan (PLyPlan.execute) and PLy_cursor_plan (plpy.cursor) use PLy_output_convert to convert Python values into Datums that can be passed to the query-to-execute. But they failed to pay much attention to its warning that it can leave "cruft generated

pgsql: Repair memory leaks in plpython.

2025-01-11 Thread Tom Lane
Repair memory leaks in plpython. PLy_spi_execute_plan (PLyPlan.execute) and PLy_cursor_plan (plpy.cursor) use PLy_output_convert to convert Python values into Datums that can be passed to the query-to-execute. But they failed to pay much attention to its warning that it can leave "cruft generated

pgsql: Repair memory leaks in plpython.

2025-01-11 Thread Tom Lane
Repair memory leaks in plpython. PLy_spi_execute_plan (PLyPlan.execute) and PLy_cursor_plan (plpy.cursor) use PLy_output_convert to convert Python values into Datums that can be passed to the query-to-execute. But they failed to pay much attention to its warning that it can leave "cruft generated

pgsql: Repair memory leaks in plpython.

2025-01-11 Thread Tom Lane
Repair memory leaks in plpython. PLy_spi_execute_plan (PLyPlan.execute) and PLy_cursor_plan (plpy.cursor) use PLy_output_convert to convert Python values into Datums that can be passed to the query-to-execute. But they failed to pay much attention to its warning that it can leave "cruft generated

pgsql: Add support for NOT ENFORCED in CHECK constraints

2025-01-11 Thread Peter Eisentraut
Add support for NOT ENFORCED in CHECK constraints This adds support for the NOT ENFORCED/ENFORCED flag for constraints, with support for check constraints. The plan is to eventually support this for foreign key constraints, where it is typically more useful. Note that CHECK constraints do not cu

Re: pgsql: TupleHashTable: store additional data along with tuple.

2025-01-11 Thread Junwang Zhao
Hi Jeff, On Sat, Jan 11, 2025 at 9:32 AM Jeff Davis wrote: > > TupleHashTable: store additional data along with tuple. > > Previously, the caller needed to allocate the memory and the > TupleHashTable would store a pointer to it. That wastes space for the > palloc overhead as well as the size of

Re: pgsql: TupleHashTable: store additional data along with tuple.

2025-01-11 Thread Alvaro Herrera
On 2025-Jan-11, Junwang Zhao wrote: > Seems this introduced an indent issue? It should be a whitespace > rather than a tab after the semicolon. Yeah, there's an issue in execGrouping.c as well. -- Álvaro HerreraBreisgau, Deutschland — https://www.EnterpriseDB.com/ Subversion to GIT: t