pgsql: Fix memory leak in pgoutput with relation attribute map

2025-01-07 Thread Michael Paquier
Fix memory leak in pgoutput with relation attribute map pgoutput caches the attribute map of a relation, that is free()'d only when validating a RelationSyncEntry. However, this code path is not taken when calling any of the SQL functions able to do some logical decoding, like pg_logical_slot_{ge

pgsql: Fix memory leak in pgoutput with relation attribute map

2025-01-07 Thread Michael Paquier
Fix memory leak in pgoutput with relation attribute map pgoutput caches the attribute map of a relation, that is free()'d only when validating a RelationSyncEntry. However, this code path is not taken when calling any of the SQL functions able to do some logical decoding, like pg_logical_slot_{ge

pgsql: Fix memory leak in pgoutput with relation attribute map

2024-12-29 Thread Michael Paquier
Fix memory leak in pgoutput with relation attribute map pgoutput caches the attribute map of a relation, that is free()'d only when validating a RelationSyncEntry. However, this code path is not taken when calling any of the SQL functions able to do some logical decoding, like pg_logical_slot_{ge

pgsql: Fix memory leak in pgoutput with relation attribute map

2024-12-29 Thread Michael Paquier
Fix memory leak in pgoutput with relation attribute map pgoutput caches the attribute map of a relation, that is free()'d only when validating a RelationSyncEntry. However, this code path is not taken when calling any of the SQL functions able to do some logical decoding, like pg_logical_slot_{ge

pgsql: Fix memory leak in pgoutput with relation attribute map

2024-12-29 Thread Michael Paquier
Fix memory leak in pgoutput with relation attribute map pgoutput caches the attribute map of a relation, that is free()'d only when validating a RelationSyncEntry. However, this code path is not taken when calling any of the SQL functions able to do some logical decoding, like pg_logical_slot_{ge

pgsql: Fix memory leak in pgoutput with relation attribute map

2024-12-29 Thread Michael Paquier
Fix memory leak in pgoutput with relation attribute map pgoutput caches the attribute map of a relation, that is free()'d only when validating a RelationSyncEntry. However, this code path is not taken when calling any of the SQL functions able to do some logical decoding, like pg_logical_slot_{ge