Re: AlterSubscription_refresh "wrconn" wrong variable?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: AlterSubscription_refresh "wrconn" wrong variable?
Дата
Msg-id 4181370.1620335330@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: AlterSubscription_refresh "wrconn" wrong variable?  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: AlterSubscription_refresh "wrconn" wrong variable?  (Peter Smith <smithpb2250@gmail.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> On 2021-May-06, Peter Smith wrote:
>> PSA v3 of the patch. Same as before, but now also renames the global
>> variable from "wrconn" to "lrep_worker_wrconn".

> I think there are two patches here -- the changes to
> AlterSubscription_refresh are a backpatchable bugfix, and the rest of it
> can just be applied to master.

The rename of that variable is just cosmetic, true, but I'd still be
inclined to back-patch it.  If we don't do so then I'm afraid that
future back-patched fixes might be bitten by the same confusion,
possibly introducing new real bugs.

Having said that, keeping the two aspects in separate patches might
ease review and testing.

> In my mind we make a bit of a distinction for global variables by using
> CamelCase rather than undercore_separated_words.

I think it's about 50/50, TBH.  I'd stick with whichever style is
being used in nearby code.

            regards, tom lane



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: AlterSubscription_refresh "wrconn" wrong variable?
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: alter table set TABLE ACCESS METHOD