Re: rename es_epq_active to es_epqstate

From: Junwang Zhao <zhjwpku(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Amit Langote <amitlangote09(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>
Subject: Re: rename es_epq_active to es_epqstate
Date: 2025-01-18 05:49:23
Message-ID: CAEG8a3LBDZaVW+PYT9mcP0iDGASE+GiQpj=6X0w0tw42vz_EYg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Jan 18, 2025 at 9:43 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Junwang Zhao <zhjwpku(at)gmail(dot)com> writes:
> > ISTM Andres tend to use *es_epq_active* in a boolean way,
> > like `if (es_epq_active) then`, but in the code base, all its usages
> > follow pattern `if (es_epq_active == NULL) then`, so I propose to
> > change es_epq_active to es_epqstate.
>
> While I didn't especially love "es_epq_active" at the time,
> I don't see that "es_epqstate" is much of an improvement:
> it's an extremely generic name that conveys little information.
> And renaming it now, years later, seems to add little except
> back-patching hazards. So I'd vote for leaving it alone.
>
> regards, tom lane

Ok, let's keep it as is, thanks for the explanation.

--
Regards
Junwang Zhao

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-01-18 05:53:20 Re: Old BufferDesc refcount in PrintBufferDescs and PrintPinnedBufs
Previous Message vignesh C 2025-01-18 05:01:27 Re: create subscription with (origin = none, copy_data = on)