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 1mGlxu-0001be-M1 for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Aug 2021 17:36:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mGlxt-00031y-IS for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Aug 2021 17:36:29 +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 1mGlxs-00031K-Ej for pgsql-hackers@lists.postgresql.org; Thu, 19 Aug 2021 17:36:29 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGlxl-0004PB-T9 for pgsql-hackers@lists.postgresql.org; Thu, 19 Aug 2021 17:36:27 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 6618E3200979; Thu, 19 Aug 2021 13:36:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 19 Aug 2021 13:36:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h= from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=fm2; bh=omMEQob3XxC0YX3iLPHs1nYY1+ hvXF1wOqKv8J8/XE8=; b=x7cgWI1rPhVlxejfqUDJmN7sMK5fc/F9ZPPRuA7cKS ohpE3PmhVlbrBWRgmDprKwenPimCQhp3ZXaCXv17J810hkGL3wmEFZ3oKdWgcLjf hDp06Z06G3shXN0jrS9H2kHOq/xR4d5WRcT6LxFWG1q2dvxQOqpgGeFfOHs5kiNC MSUnqfg0nQ1Dmj3SSqgK6TtfKTLZFVEDj6IIDkcs+D5dzR4dQ7cKDURu1TpBA6U8 jxIlCaDBRHH6l8YQv91T0LhHvj00KEWD8vISvrx0O15YoqnzBiWw8SyJUpWD+e/U tZ7EuCMalnicrz2ihlXWdAPAPAvVQsWea43NNJUNIPmg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=omMEQo b3XxC0YX3iLPHs1nYY1+hvXF1wOqKv8J8/XE8=; b=uyeEkrKK3lJagIjs1y1HxM iON4KlpxivqMCy68SfI04FJoJN6JCpwUgwxeYlHo1Uzwckvq4BykdnlUengn2p9d QxI5xzwa+VIu6OT0V1wImOjFcCBDovoFWNm/SQz9rpugInwGKiJ1fTbgJllDYTpY Wu7I1K7slVsRt23MrWZskkWH520algK5sqFX8nv5aCdcwF+tRewufvJa3sIMDvzU 4oe7shSScfGzKKypY8T7gUeHnsDrSsqyp1f5oBa2xn4z6PyRV4Md0+zlm5vtl9xY OAIWHWQ6UxyTChNUdE7REj43i5jcca6whu3shyh2CWaHBUIowW0FrsvUbQd5Pmxg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrleejgdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufhfffgjkfgfgggtsehttdertddtreejnecuhfhrohhmpeffrghgfhhi nhhnpgfklhhmrghrihgpofgrnhhnshonkhgvrhcuoehilhhmrghrihesihhlmhgrrhhird horhhgqeenucggtffrrghtthgvrhhnpeevveekvdeffeeutdffffelvefhvdetgffhjefg hfetveeujefhheelieeftdegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehilhhmrghrihesihhlmhgrrhhirdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Aug 2021 13:36:17 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Peter Geoghegan Cc: Alvaro Herrera , Pg Hackers Subject: Re: reporting TID/table with corruption error References: <202108191637.oqyzrdtnheir@alvherre.pgsql> Date: Thu, 19 Aug 2021 18:36:15 +0100 In-Reply-To: (Peter Geoghegan's message of "Thu, 19 Aug 2021 09:44:09 -0700") Message-ID: <87y28xuyk0.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Geoghegan writes: > On Thu, Aug 19, 2021 at 9:38 AM Alvaro Herrera wrote: >> A customer recently hit this error message: >> >> ERROR: t_xmin is uncommitted in tuple to be updated >> >> This was not very informative, so without any clues, we had to let it >> go. But it did occur to me that we can improve this message so that we >> know details such as the TID and the relation that caused the issue, so >> that if it ever occurs again we can at least look at the WAL stream for >> anything affecting the tuple, maybe it'd help to understand the problem. > > I think that this is a very good idea. Ideally this stuff would be > more standardized. There are various functions for adding auxilliary fields to the error report, e.g. errtable() for the schema and table names, but that only seems to be reported to the client, not logged on the server. Should we be logging auxiliary error fields? If not by default, maybe by a higher log_error_verbosity level (possibly a new one between default and verbose). - ilmari