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 1kXdGv-0003a5-Tm for pgsql-committers@arkaria.postgresql.org; Wed, 28 Oct 2020 04:41: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 1kXdGu-0006qS-Ie for pgsql-committers@arkaria.postgresql.org; Wed, 28 Oct 2020 04:41: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 1kXdGt-0006ot-Kn for pgsql-committers@lists.postgresql.org; Wed, 28 Oct 2020 04:41:16 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXdGm-00087i-MY for pgsql-committers@lists.postgresql.org; Wed, 28 Oct 2020 04:41:14 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 08878513; Wed, 28 Oct 2020 00:41:05 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 28 Oct 2020 00:41:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=KDQx2C9cmP9+yjitUE6K4k6LHlu PYGWuAYSrs1WRQtg=; b=k9FtpjpNALNcWTXjZYO9XVu4vno06Ydc8smlNTsUyBv usnLmnNAoqWGM+XB6yawI45sUarckNxYot2+ErdMOzOjYFnbVJtc923VfLsNWOTJ bFE5RB8obzFPzk51LzvFT2JJDBu3At2G7scEIcG94yCgEuuptvpcZA1FleMaqDzI aQ4NXwTzZoLd9ilBBsYAMZLrgQ0Fm3UUC1Z2xidlp6RkxjMfs+RhwbYh0UKOU+hi aMg7fbMUKw70jy06o4u5J1o/3Zy87AW/tC7P8nXVxysg3SwWwMVaoH7j7d7sq0/c SQ/Z5P7AH6e+L2KM4jXDD9bNvDaU2lvVSpmUdv2zN6A== 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=fm1; bh=KDQx2C 9cmP9+yjitUE6K4k6LHluPYGWuAYSrs1WRQtg=; b=ffAV29yTBvT/pLeRon6LXm WNAz/G3KH6wHPE7Pgia0Mf1yGWb8a3DND50rj/m5TgawihBrt2k10S6Aohg16XWs /D/gn73WG8MC63QWBlE5wCezxNWfjW3jsIbyUv4taGD/Xfjr+UzncybEDcaBXqm9 4bhEOUHtO4O5F73VnU0awLfPrZPka+13No1UQMMQT6XveECT0BxWdoyq6xO59z1A D1wUriQfxTn+5ttf9eOSDXb7HrK6i8sdQG+Twc+CS3gtZF/bib98OL0vSOjipy6o CEJMPHvyacNsk7gPOkw1NSc8HWTfCRxcqXw+AasS0pxNa6zY8qZDVv7nOTAIM73A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrledtgdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepfffhvf fukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhi vghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnh epvdegudeuhfdtueeltedtveejheehieevueeigeelteegleejleeiueeiheegvefhnecu kfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 381763064683; Wed, 28 Oct 2020 00:41:04 -0400 (EDT) Date: Wed, 28 Oct 2020 13:41:01 +0900 From: Michael Paquier To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add pg_relation_check_pages() to check on-disk pages of a relati Message-ID: <20201028044101.GE28445@paquier.xyz> References: <1226629.1603859189@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sLx0z+5FKKtIVDwd" Content-Disposition: inline In-Reply-To: <1226629.1603859189@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --sLx0z+5FKKtIVDwd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 28, 2020 at 12:26:29AM -0400, Tom Lane wrote: > Seems to have some issues according to florican: >=20 > 2020-10-28 00:04:53.191 EDT [27031:5] DETAIL: Failed process was > running: SELECT relname, failed_block_num FROM (SELECT relname, > (pg_catalog.pg_relation_check_pages(oid)).* FROM pg_class WHERE > relkind in ('r','i', 'm') AND oid >=3D 16384) AS s=20 Yes, thanks. I was already investigating it. No need for a back-trace, I have been able to reproduce it here avec some -m32'ing with gcc: #1 0x566e0572 in fill_val (att=3D0x57d205c0, bit=3D0x0, bitmask=3D0xff9c51e8, dataP=3D0xff9c521c, infomask=3D0x57d207e8, datum=3D0, isnull=3Dfalse) at heaptuple.c:287 #2 0x566e066e in heap_fill_tuple (tupleDesc=3D0x57d2053c, values=3D0xff9c52b0, isnull=3D0xff9c52ae, data=3D0x57d207fd "", data_size=3D28, infomask=3D0x57d207e8, bit=3D0x0) at heaptuple.c:336 #3 0x566e2660 in heap_form_minimal_tuple (tupleDescriptor=3D0x57d2053c, values=3D0xff9c52b0, isnull=3D0xff9c52ae) at heaptuple.c:1412 #4 0x56d18e84 in tuplestore_putvalues (state=3D0x57d20648, tdesc=3D0x57d2053c, values=3D0xff9c52b0, isnull=3D0xff9c52ae) at tuplestore.c:756 #5 0x56c2b94b in check_relation_fork (tupdesc=3D0x57d2053c, tupstore=3D0x57d20648, relation=3D0xeebf346c, forknum=3DMAIN_FORKNUM) at pagefuncs.c:222 #6 0x56c2b779 in check_one_relation (tupdesc=3D0x57d2053c, tupstore=3D0x57d20648, relid=3D16384, single_forknum=3DInvalidForkNumber) at pagefuncs.c:148 #7 0x56c2b645 in pg_relation_check_pages (fcinfo=3D0x57d1c888) at pagefuncs.c:104 =20 -- Michael --sLx0z+5FKKtIVDwd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl+Y9l0ACgkQnvQgOdby QH1EGhAAiUGH/kLHCWWmIQkrmCbl5BTsIPm4tz6pLGg4pwK1G0T6HvNSlcTJJxA9 S03yNKSLGzdBVvsuy87e/NpiEibxa80Lp46CWdzpX8qmI7r3+YOeHGj9jzqUeHbN bVgS8FFpSQTpzyszejVrP4zyIDLKGi0KgXMClNqtV6rVNF/9ad1zRmCs0MAJCq7x /y4OTP0pPxuTPGcSliToZWS9k5snHwSl2cWByyGNwAIe4hTYFrPStc8FV8mDAmxr XaX2ZS5ZITVpZcIsCqNNO9ThajHdKnxeqFCSbKDW024cMck6hGadgdbVcWT8DA1A 0Uv3wPM6lHi8W//08bN1cLQ2U7i7ZEvwYIEP7Z3nCdaFfZILSPhUK5jFsL4CGDR9 K8MmVw/8C1tCWPg1aS6TpIb++24xrn+avbAVp5suoIgsmLNpm7ffzNn0Tmy7T4vT 8/rFYIhEIihccmk+wTx0stwua+dkJ1cikJt9/wJykFdujjf5lLzZ8DcDorSmAjVr pozd3hDynGFPj2LmrGpVru/YT+bBy/l3jNnJwwA5pZ28/L9FgDvvOPX1aqD3sh0G ws7ckDa8ZnlR5Fol0iAKlHxQitDIEC/VCe+HQ/JrcBSdjAL8LK8FZlcCG7XOsswI 04ZLtinfYOysmcjwRBbkjphXA31xjKlLo7bQmmf0q+oPdKRy904= =997M -----END PGP SIGNATURE----- --sLx0z+5FKKtIVDwd--