Re: Our naming of wait events is a disaster. - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Our naming of wait events is a disaster.
Date
Msg-id CA+TgmoaKfN+5+Mbmhi+9GiZw8-zkrNMb3FFXB3B=ZY6KdopP5w@mail.gmail.com
Whole thread Raw
In response to Re: Our naming of wait events is a disaster.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, May 14, 2020 at 3:58 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I submit that at least part of the problem is precisely one of crappy
> naming.  I didn't know what OldSerXidLock did either, until yesterday
> when I dug into the code to find out.  If it's named something like
> "SerialSLRULock", then at least somebody who has heard of SLRUs will
> have an idea of what is indicated.  And we are exposing the notion
> of SLRUs pretty prominently in the monitoring docs as of v13, so that's
> not an unreasonable presumption.

To the extent that exposing some of this information causes us to
think more carefully about the naming, I think that's all to the good.
I don't expect such measures to solve all of our problems in this
area, but the idea that we can choose names with no consideration to
whether anybody can understand what they mean is wrong even when the
audience is only developers.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: new heapcheck contrib module
Next
From: Robert Haas
Date:
Subject: Re: Parallel copy