pgsql: Fix memory leak in plpgsql's CALL processing.

2020-09-29 Thread Tom Lane
Fix memory leak in plpgsql's CALL processing. When executing a CALL or DO in a non-atomic context (i.e., not inside a function or query), plpgsql creates a new plan each time through, as a rather hacky solution to some resource management issues. But it failed to free this plan until exit of the

pgsql: Fix memory leak in plpgsql's CALL processing.

2020-09-29 Thread Tom Lane
Fix memory leak in plpgsql's CALL processing. When executing a CALL or DO in a non-atomic context (i.e., not inside a function or query), plpgsql creates a new plan each time through, as a rather hacky solution to some resource management issues. But it failed to free this plan until exit of the

pgsql: Fix memory leak in plpgsql's CALL processing.

2020-09-29 Thread Tom Lane
Fix memory leak in plpgsql's CALL processing. When executing a CALL or DO in a non-atomic context (i.e., not inside a function or query), plpgsql creates a new plan each time through, as a rather hacky solution to some resource management issues. But it failed to free this plan until exit of the

pgsql: Fix memory leak in plpgsql's CALL processing.

2020-09-29 Thread Tom Lane
Fix memory leak in plpgsql's CALL processing. When executing a CALL or DO in a non-atomic context (i.e., not inside a function or query), plpgsql creates a new plan each time through, as a rather hacky solution to some resource management issues. But it failed to free this plan until exit of the