Re: SnapBuildSerialize function forgot pfree variable ondisk_c

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: SnapBuildSerialize function forgot pfree variable ondisk_c
Дата
Msg-id CAA4eK1LfSLDURHw8y1KkiafMjrDvq6BR4ZxXJ8h_W0t4g7=vqg@mail.gmail.com
обсуждение исходный текст
Ответ на 回复:SnapBuildSerialize function forgot pfree variable ondisk_c  ("范孝剑(康贤)" <funnyxj.fxj@alibaba-inc.com>)
Ответы Re: SnapBuildSerialize function forgot pfree variable ondisk_c  (Amit Kapila <amit.kapila16@gmail.com>)
Список pgsql-bugs
On Fri, Nov 13, 2020 at 11:36 AM 范孝剑(康贤) <funnyxj.fxj@alibaba-inc.com> wrote:
>
> If we create logical slot frequently, every time when creating a logical slot, it will generate a LogStandbySnapshot
walrecord. 
>
> Session A:
> do language plpgsql $$
> declare
>   v_text text := 'a';
> begin
>   for i in 1..290000 loop
>     execute $_$select pg_create_logical_replication_slot('logical_slot4', 'test_decoding')$_$;
>     execute $_$select pg_drop_replication_slot('logical_slot4')$_$;
>   end loop;
> exception when others then
>   raise notice 'execute  failed.';
> end;
> $$;
>
> Session B:
> pg_recvlogical -d postgres --start -S test -f test.log
>

Thanks for sharing the test. I am able to reproduce the issue and the
attached fixes it for me. This needs to be backpatched till 9.5 where
it was introduced. I am planning to push this tomorrow.

--
With Regards,
Amit Kapila.

Вложения

В списке pgsql-bugs по дате отправления:

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16819: Bug Installation
Следующее
От: michael wilder
Дата:
Сообщение: Re: BUG #16808: Postgres Windows installer fails with iso-8859-1 error and terminates