Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puXlu-00025U-D1 for pgsql-hackers@arkaria.postgresql.org; Thu, 04 May 2023 12:09:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1puXls-0004FU-EO for pgsql-hackers@arkaria.postgresql.org; Thu, 04 May 2023 12:09:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puXls-0004FK-4w for pgsql-hackers@lists.postgresql.org; Thu, 04 May 2023 12:09:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1puXlp-000To0-JS for pgsql-hackers@lists.postgresql.org; Thu, 04 May 2023 12:09:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 344C9Cf53195700; Thu, 4 May 2023 08:09:12 -0400 From: Tom Lane To: Daniel Gustafsson cc: PostgreSQL Hackers Subject: Re: evtcache: EventTriggerCache vs Event Trigger Cache In-reply-to: <5EDC969E-CAE3-4CBD-965E-3B8A1294CFA4@yesql.se> References: <5EDC969E-CAE3-4CBD-965E-3B8A1294CFA4@yesql.se> Comments: In-reply-to Daniel Gustafsson message dated "Thu, 04 May 2023 13:38:26 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3195698.1683202152.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 04 May 2023 08:09:12 -0400 Message-ID: <3195699.1683202152@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Daniel Gustafsson writes: > When reading a memory contexts log I realized that we have this: > LOG: level: 2; EventTriggerCache: 8192 total in 1 blocks; 7928 free (4 = chunks); 264 used > LOG: level: 3; Event Trigger Cache: 8192 total in 1 blocks; 2616 free (= 0 chunks); 5576 used > The reason is that BuildEventTriggerCache sets up a context "EventTrigge= rCache" > which house a hash named "Event Trigger Cache" which in turn creates a c= ontext > with the table name. I think it makes sense that these share the same n= ame, > but I think it would be less confusing if they also shared the same spel= ling > whitespace-wise. Any reason to not rename the hash EventTriggerCache to= make > the logging a tiny bit easier to read and grep? Hmm, I'm kinda -1 on them having the same name visible in the contexts dump --- that seems very confusing. How about naming the hash "EventTriggerCacheHash" or so? regards, tom lane