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.96) (envelope-from ) id 1w13Ym-002WGU-3A for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2026 14:32:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w13Yl-004Z1k-1L for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2026 14:32:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w13Yl-004Z1b-0A for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2026 14:32:15 +0000 Received: from meesny.iki.fi ([195.140.195.201]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w13Yj-00000002UN0-1HWM for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2026 14:32:15 +0000 Received: from [10.0.2.15] (unknown [130.41.208.2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by meesny.iki.fi (Postfix) with ESMTPSA id 4fXRlH3LKLzyQw; Fri, 13 Mar 2026 16:32:11 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1773412332; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GyUpLUr70Iy0gx4eo0S5G8iUAIcTVyHhZypk2CwaQok=; b=XkeTSgO7mUdqZcxPQo39AB35C9rAAtIfu/yuB57xAp35TRG7l1OqSL2SHLFfG30AVmaohW lBJVnPRttBqVD/BwYKBndpON0Z/SktKy0S6dqHQGzLLU9HmVrRs29XqbaO3FAY9wYdwdWV 1YmJ6H/An0+T49Swr3CMDxfVFnwgcdE= ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=meesny; cv=none; t=1773412332; b=RyNYStNnU3m+QdgnkJe6eREzftwv5chTEjonfc52KqduaRBvuGOxTF0Ae3p5lfqTg7EfUt rFeJVjAeF4y8NxJeQpUy8IjEISnnTgYUnoIHqQYRfUnB5AJOcy4X/rN+Xx1Brgp5ZTeMWs R0ZZMgQZLdszoRaKc9QD0ESU6Y+Gz2w= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1773412331; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GyUpLUr70Iy0gx4eo0S5G8iUAIcTVyHhZypk2CwaQok=; b=KAiLLtUflS6ZgLai76r8tiqAEUWUqjvuv/jv0nl2NLLy/j+3ueoU8Zy/omfn8JYgpykMCa WrmzDmQUQgwbli+WNfu5th3D4xmZv+KH65R3mjduUh6+HGHKOLCuMaJA5KOeK28S+aYxMn 8TQeQLpw5rYKxubDjuaByNgK5XNDjCo= Message-ID: Date: Fri, 13 Mar 2026 16:32:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Rework SLRU I/O errors handle From: Heikki Linnakangas To: Maxim Orlov Cc: =?UTF-8?Q?=C3=81lvaro_Herrera?= , Postgres hackers References: <202603061507.6ynh6qimlcma@alvherre.pgsql> <74f5dc14-29fd-46d9-ba8b-2844328d7bdf@iki.fi> <511e3a69-da70-4bb2-9185-c93d3af8fdf5@iki.fi> Content-Language: en-US In-Reply-To: <511e3a69-da70-4bb2-9185-c93d3af8fdf5@iki.fi> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/03/2026 12:51, Heikki Linnakangas wrote: > On 06/03/2026 19:08, Maxim Orlov wrote: >> I don't know what's happening with my mail, but I haven't >> received the previous letters. >> >> Anyway, v4 looks good to me. >> Perhaps the extra double line following clog_errdetail_for_io_error >> is unnecessary? But as always, to your taste. > > Thanks. I did one more iteration on this: I realized that the error we > now printed for errors on pg_multixact/members always printed the > failing offset, whereas before this patch we usually printed the failing > *multixid* that the member is part of. Printing the multixid might > actually be more useful; the offset can more easily be deduced from the > segment filename and physical offset that is printed anyway, but it's > harder to know which multixid it belongs to. This printing the > originating multixid seems useful. If things go badly wrong and you need > to do manual debugging of a corrupted database, the multixid can more > easily be compared with the xmax in the heap and with pg_waldump output, > for example. > > We can print both, per attached, which is even better. This is perhaps > overkill, but then again, if you hit an error like this, you really > appreciate any extra information you can get. I hear no objections, so committed that. Thanks! - Heikki