pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrey M. Borodin <x4mmm@yandex-team.ru>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Our naming of wait events is a disaster.
Date: Tue, 12 May 2020 14:11:34 -0400
Message-ID: <31271.1589307094@sss.pgh.pa.us> (raw)
In-Reply-To: <270FBE56-4F83-4FDE-BFFC-18EFF54DE30A@yandex-team.ru>
References: <21247.1589296570@sss.pgh.pa.us>
	<270FBE56-4F83-4FDE-BFFC-18EFF54DE30A@yandex-team.ru>

"Andrey M. Borodin" <x4mmm@yandex-team.ru> writes:
> 3. I think names observed in wait_event and wait_event_type should not duplicate information. i.e. "XidGenLock" is already "LWLock".

Yeah, I'd been wondering about that too: we could strip the "Lock" suffix
from all the names in the LWLock category, and make pg_stat_activity
output a bit narrower.

There are a lot of other things that seem inconsistent, but I'm not sure
how much patience people would have for judgment-call renamings.  An
example is that "ProcSignalBarrier" is under IO, but why?  Shouldn't it
be reclassified as IPC?  Other than that, *almost* all the IO events
are named SomethingRead, SomethingWrite, or SomethingSync, which
makes sense to me ... should we insist they all follow that pattern?

Anyway, I was just throwing this idea out to see if there would be
howls of "you can't rename anything" anguish.  Since there haven't
been so far, I'll spend a bit more time and try to create a concrete
list of possible changes.

			regards, tom lane





view thread (30+ messages)  latest in thread

Message-ID: <31271.1589307094@sss.pgh.pa.us>
Permalink:  ../31271.1589307094@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/31271.1589307094@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, x4mmm@yandex-team.ru, pgsql-hackers@lists.postgresql.org
  Subject: Re: Our naming of wait events is a disaster.
  In-Reply-To: <31271.1589307094@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox