Re: Rework LogicalOutputPluginWriterUpdateProgress

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Rework LogicalOutputPluginWriterUpdateProgress
Дата
Msg-id 20230303003732.7f3ff4faxxhaag64@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Rework LogicalOutputPluginWriterUpdateProgress  (Peter Smith <smithpb2250@gmail.com>)
Список pgsql-hackers
Hi,

On 2023-03-03 11:18:04 +1100, Peter Smith wrote:
> - Why is reducing members of LogicalDecodingContext even a goal? I
> thought the LogicalDecodingContext is intended to be the one-stop
> place to hold *all* things related to the "Context" (including that
> member that was deleted).

There's not really a reason to keep it in LogicalDecodingContext after
this change. It was only needed there because of the broken
architectural model of calling UpdateProgress from within output
plugins. Why set a field in each wrapper that we don't need?

> - How is reducing one member better than introducing one new parameter
> in multiple calls?

Reducing the member isn't important, needing to set it before each
callback however makes sense.

Greetings,

Andres Freund



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Normalization of utility queries in pg_stat_statements
Следующее
От: David Rowley
Дата:
Сообщение: Re: Making empty Bitmapsets always be NULL