pgsql: Fix memory leakage in postgres_fdw's DirectModify code path.

2025-05-30 Thread Tom Lane
Fix memory leakage in postgres_fdw's DirectModify code path. postgres_fdw tries to use PG_TRY blocks to ensure that it will eventually free the PGresult created by the remote modify command. However, it's fundamentally impossible for this scheme to work reliably when there's RETURNING data, becaus

pgsql: Fix memory leakage in postgres_fdw's DirectModify code path.

2025-05-30 Thread Tom Lane
Fix memory leakage in postgres_fdw's DirectModify code path. postgres_fdw tries to use PG_TRY blocks to ensure that it will eventually free the PGresult created by the remote modify command. However, it's fundamentally impossible for this scheme to work reliably when there's RETURNING data, becaus

pgsql: Fix memory leakage in postgres_fdw's DirectModify code path.

2025-05-30 Thread Tom Lane
Fix memory leakage in postgres_fdw's DirectModify code path. postgres_fdw tries to use PG_TRY blocks to ensure that it will eventually free the PGresult created by the remote modify command. However, it's fundamentally impossible for this scheme to work reliably when there's RETURNING data, becaus

pgsql: Fix memory leakage in postgres_fdw's DirectModify code path.

2025-05-30 Thread Tom Lane
Fix memory leakage in postgres_fdw's DirectModify code path. postgres_fdw tries to use PG_TRY blocks to ensure that it will eventually free the PGresult created by the remote modify command. However, it's fundamentally impossible for this scheme to work reliably when there's RETURNING data, becaus

pgsql: Fix memory leakage in postgres_fdw's DirectModify code path.

2025-05-30 Thread Tom Lane
Fix memory leakage in postgres_fdw's DirectModify code path. postgres_fdw tries to use PG_TRY blocks to ensure that it will eventually free the PGresult created by the remote modify command. However, it's fundamentally impossible for this scheme to work reliably when there's RETURNING data, becaus

pgsql: Fix memory leakage in postgres_fdw's DirectModify code path.

2025-05-30 Thread Tom Lane
Fix memory leakage in postgres_fdw's DirectModify code path. postgres_fdw tries to use PG_TRY blocks to ensure that it will eventually free the PGresult created by the remote modify command. However, it's fundamentally impossible for this scheme to work reliably when there's RETURNING data, becaus