pgsql: Fix memory leak in SnapBuildSerialize.

2021-01-12 Thread Amit Kapila
Fix memory leak in SnapBuildSerialize. The memory for the snapshot was leaked while serializing it to disk during logical decoding. This memory will be freed only once walsender stops streaming the changes. This can lead to a huge memory increase when master logs Standby Snapshot too frequently sa

pgsql: Fix memory leak in SnapBuildSerialize.

2021-01-12 Thread Amit Kapila
Fix memory leak in SnapBuildSerialize. The memory for the snapshot was leaked while serializing it to disk during logical decoding. This memory will be freed only once walsender stops streaming the changes. This can lead to a huge memory increase when master logs Standby Snapshot too frequently sa

pgsql: Fix memory leak in SnapBuildSerialize.

2021-01-12 Thread Amit Kapila
Fix memory leak in SnapBuildSerialize. The memory for the snapshot was leaked while serializing it to disk during logical decoding. This memory will be freed only once walsender stops streaming the changes. This can lead to a huge memory increase when master logs Standby Snapshot too frequently sa

pgsql: Fix memory leak in SnapBuildSerialize.

2021-01-12 Thread Amit Kapila
Fix memory leak in SnapBuildSerialize. The memory for the snapshot was leaked while serializing it to disk during logical decoding. This memory will be freed only once walsender stops streaming the changes. This can lead to a huge memory increase when master logs Standby Snapshot too frequently sa

pgsql: Fix memory leak in SnapBuildSerialize.

2021-01-12 Thread Amit Kapila
Fix memory leak in SnapBuildSerialize. The memory for the snapshot was leaked while serializing it to disk during logical decoding. This memory will be freed only once walsender stops streaming the changes. This can lead to a huge memory increase when master logs Standby Snapshot too frequently sa

pgsql: Fix memory leak in SnapBuildSerialize.

2021-01-12 Thread Amit Kapila
Fix memory leak in SnapBuildSerialize. The memory for the snapshot was leaked while serializing it to disk during logical decoding. This memory will be freed only once walsender stops streaming the changes. This can lead to a huge memory increase when master logs Standby Snapshot too frequently sa

pgsql: Fix memory leak in SnapBuildSerialize.

2021-01-12 Thread Amit Kapila
Fix memory leak in SnapBuildSerialize. The memory for the snapshot was leaked while serializing it to disk during logical decoding. This memory will be freed only once walsender stops streaming the changes. This can lead to a huge memory increase when master logs Standby Snapshot too frequently sa