Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rB4C5-009JKK-0t for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Dec 2023 02:32:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rB4C1-00EHma-Rx for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Dec 2023 02:32:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rB4C0-00EHmR-LF for pgsql-hackers@lists.postgresql.org; Thu, 07 Dec 2023 02:32:49 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rB4Bv-009B0l-4f for pgsql-hackers@lists.postgresql.org; Thu, 07 Dec 2023 02:32:45 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 733DC5C0003; Wed, 6 Dec 2023 21:32:42 -0500 (EST) Received: from imap49 ([10.202.2.99]) by compute2.internal (MEProxy); Wed, 06 Dec 2023 21:32:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1701916362; x=1702002762; bh=xE PU7BP7fM748+tYHm9MWiMXbWfcZJI9hRICKKqEy0M=; b=PTXqwjwwn5Y01ipwXB UI7mrrZcadBMH2WLGaOtpHGsiuSmWzZ5ZBRBq0Zp+S/Eee2MRDQpGjQVLiNDpgDG znWJ+vgLUWYyVSMOTStM6sMfKLtbAvelWXfBW2EXt1ATd7u+C3DNnQGSb5pHeUz+ S7BsIXgAhPu9HpeIkywOAzCaVcvkr3Hw8SSzoQjsedku7QJg3FqJWtcdeFt+v0Pz Eidus8L6T+kh1lXItoUAFy+f0ImNPn8txbuQKpm5TXUiRYmivOkh3GI2sSBj9P9s CbeBx+uz8+hJlAt2EzPcQXOxorwjKI+ftz/WIwMLhIwRXJqt/9o4R2P57uSvtuze Hawg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1701916362; x=1702002762; bh=xEPU7BP7fM748 +tYHm9MWiMXbWfcZJI9hRICKKqEy0M=; b=bp8sn7+wMjwJ0S3xe/SRFeT//KOuk kiRRuxe918u8S6sVUE5rNmywhhEqFFuRqDQSu+m2uMPJKuWded8+pCV0qm/jTiRl opOrTr2K7w0NbY//1pCmR62oNdUr3czsZLtPpfD/5l0zMmCx3pZGw2Oy31K6rwgg IuYpEoKNXvrx6M1vlKhCX6O1AEfk6tRbXRTMYCvICcJmamLOqbiQU7z6ltWK40Wf 2qP7P1LnE0VyJI3tVDEmHy25OOGOJKZpJZL3w+1PL/INOnQw9+zpxFpSo8JeXZjn XbS25PI9G4ZFO7JFyZCjMj3GvBNiPqc+3sxk5oA3h/xVoxk1hyiKdKcBQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudekuddggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsegrtderreerredtnecuhfhrohhmpedfgfhu lhgvrhcuvfgrvhgvihhrrgdfuceovghulhgvrhesvghulhgvrhhtohdrtghomheqnecugg ftrfgrthhtvghrnhepgfffjedviedvkedviedvteduieekudeivedthffhuddvteegleet ieffkeeghfdvnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegvuhhlvghrsegv uhhlvghrthhordgtohhm X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2571615A0091; Wed, 6 Dec 2023 21:32:41 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1178-geeaf0069a7-fm-20231114.001-geeaf0069 MIME-Version: 1.0 Message-Id: In-Reply-To: References: <5a2e43da-0425-4fc1-9b13-19fd33123950@eisentraut.org> Date: Wed, 06 Dec 2023 23:32:19 -0300 From: "Euler Taveira" To: "Michael Paquier" Cc: "Peter Eisentraut" , "Bharath Rupireddy" , "PostgreSQL Hackers" Subject: Re: Is WAL_DEBUG related code still relevant today? Content-Type: multipart/alternative; boundary=b375735b88b64a6886cee75c427e9aec List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --b375735b88b64a6886cee75c427e9aec Content-Type: text/plain On Wed, Dec 6, 2023, at 9:51 PM, Michael Paquier wrote: > PerformWalRecovery() with its log for RM_XACT_ID is something that > stresses me a bit though because this is in the main redo loop which > is never free. The same can be said about GenericXLogFinish() because > the extra computation happens while holding a buffer and marking it > dirty. The ones in xlog.c are free of charge as they are called > outside any critical portions. > > This makes me wonder how much we need to care about > trace_recovery_messages, actually, and I've never used it. IIUC trace_recovery_messages was a debugging aid in the 9.0 era when the HS was introduced. I'm also wondering if anyone used it in the past years. elog.c: * Intention is to keep this for at least the whole of the 9.0 production * release, so we can more easily diagnose production problems in the field. * It should go away eventually, though, because it's an ugly and * hard-to-explain kluge. */ int trace_recovery(int trace_level) { if (trace_level < LOG && trace_level >= trace_recovery_messages) return LOG; return trace_level; } -- Euler Taveira EDB https://www.enterprisedb.com/ --b375735b88b64a6886cee75c427e9aec Content-Type: text/html Content-Transfer-Encoding: quoted-printable
On Wed, Dec 6, = 2023, at 9:51 PM, Michael Paquier wrote:
PerformWalRecovery() with its log for RM_X= ACT_ID is something that
stresses me a bit though because = this is in the main redo loop which
is never free.  T= he same can be said about GenericXLogFinish() because
the = extra computation happens while holding a buffer and marking it
dirty.  The ones in xlog.c are free of charge as they are cal= led
outside any critical portions.

This makes me wonder how much we need to care about
= trace_recovery_messages, actually, and I've never used it.

IIUC trace_recovery_messages was a debuggin= g aid in the 9.0 era when the HS was
introduced. I'm also = wondering if anyone used it in the past years.

<= div>elog.c:

* Intention is to keep this for= at least the whole of the 9.0 production
* release, so we= can more easily diagnose production problems in the field.
* It should go away eventually, though, because it's an ugly and
* hard-to-explain kluge.
*/
int
=
trace_recovery(int trace_level)
{
    if (trace_level < LOG &&
&n= bsp;       trace_level >=3D trace_recov= ery_messages)
        r= eturn LOG; 

    return = trace_level;
}


--
Euler Taveira

--b375735b88b64a6886cee75c427e9aec--