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 1uYVNG-0077Cp-I3 for pgsql-hackers@arkaria.postgresql.org; Sun, 06 Jul 2025 19:50:07 +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 1uYVND-00EwTw-Ay for pgsql-hackers@arkaria.postgresql.org; Sun, 06 Jul 2025 19:50:03 +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.94.2) (envelope-from ) id 1uYVNC-00EwTn-E5 for pgsql-hackers@lists.postgresql.org; Sun, 06 Jul 2025 19:50:03 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uYVN9-0066ab-2H for pgsql-hackers@lists.postgresql.org; Sun, 06 Jul 2025 19:50:02 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id 4FCC21D001CE; Sun, 6 Jul 2025 15:49:57 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Sun, 06 Jul 2025 15:49:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm3; t=1751831397; x= 1751917797; bh=2+mQ1dsp468yGFjfwdo9E/KqI+vLuLYLeC9rTUPt9RM=; b=Y gTjGi01v6sJs4wTGDj72+Rotw3sqXskONGITlmrJA9t/Att1/9wLHrZ8gnHn6zvt aPj3kLPP9t+eG2f1GCa23si2UGg2GKrM06e3g/GCLIlqfUUjhAHScB1dWR9+nPt1 VXBRsTRJ2L7bsOD9CCR59KoYewm6S9hK1ESEON44tafc4t20n8LaQwksvk4GWDwb qbtajHTPyoZ9cEb+DLpirvGYBOzV/9qTrUAnWPSzRptCt0ahTOzQjjBOQ6xBuw3Y S3iN5Uy1AWGbd/7jYLI59XldOlVN0Hh3cqEwc6cNYuZqG6brEpZm/d13whqHDNOY LoKYDHE9yBQ5PYD3gHksw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1751831397; x=1751917797; bh=2 +mQ1dsp468yGFjfwdo9E/KqI+vLuLYLeC9rTUPt9RM=; b=WT36q54Z67SPRFXqN F5WG08L+YO4TWUgXBL1H2gqbf5DuV2JzJAfhcgsR1fWygcYUWAugsHpo4yqE0BKK +0FQ8pxyu04xM3a98n+DQA9MthASior3BFdA+Q6XmBFwyQ6Mq249fuKm3s5kMxOv 7GO32RUKnSmWJJvAJ6HYU3247EuKWFsSdHtdtpbWBVPQq4zlFpAdV1Ke9qhTegSe yNU9+RD3zc4/iGlyu+4/IjR3tfJJBrp6/q82LSiI1WHMfOhd3BJTVz1NAmOVzo2C 3SCfOd0s2Bqm9cDAGySqKTQdtFBjbYc8UvH1oo/hx7eR30JwAet7GJYHVuKDrJx+ oLAwg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddvleektdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpemllhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgeqnecuggftrf grthhtvghrnheptdehhedtkeffffetfeekhffhffegtefhjeekveeuveduuedugeffleei veffheefnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhdpphhoshhtgh hrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtth hopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrrhhsvghnihihrdhmuhhk hhhinhdruggvvhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkh gvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 6 Jul 2025 15:49:56 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1751831394; bh=9DcyChEH4DgB+y3J3edYxFfNY9GO3N3RvQvutfUomsg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Lj2FlqGGpVZtC0MIV9rJlsEsI8DmW3PuVLaXg/de7O/Xlfr5/Wz74XNcIu06j1Kmq AlgTszv7/yFG0cqNvvCIGyC3lzX4MCeVLthX3jgFwMN0Oz94/4xvwflzWSUdOThEuu kr30cPoN51c6bWyisBLDl6INY3nbwl9hBHJSO06H8KGix/YoG00uaY013KP5JE/7sU +CANEyZH30rXOKDnPCQ4KcphOpJN3CYDyeNwbGcFM82ZRyE2mAbTuKQM2B8AVO8M1x gC1YljKSqtMOe8+Z+gpxf8lRg5mRS+XhRXAqA6Zf4Nq1+147rWvoAC/O3ZzyCMQDWH onVWAxeYuEDMA== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 7ECE78F; Sun, 6 Jul 2025 21:49:54 +0200 (CEST) Date: Sun, 6 Jul 2025 21:49:54 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Arseniy Mukhin Cc: PostgreSQL Hackers Subject: Re: amcheck support for BRIN indexes Message-ID: <202507061949.6tjgborub3kd@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Jul-06, Arseniy Mukhin wrote: > Sorry, forget to run a full test run with the new patch version. Some > tests were unhappy with the new unknown support function. Here the new > version with the fix. Hello, I think this patch is probably a good idea. I don't think it makes sense to introduce a bunch of code in 0003 only to rewrite it completely in 0005. I would ask that you re-split your WITHIN_RANGE (0004) to appear before the amcheck code, and then write the amcheck code using that new functionality. > /* > * Return a tuple descriptor used for on-disk storage of BRIN tuples. > */ > -static TupleDesc > +TupleDesc > brtuple_disk_tupdesc(BrinDesc *brdesc) I think we should give this function a better name if it's going to be exported. How about brin_tuple_tupdesc? (in brin_tuple.h we seem to distinguish "brin tuples" which are the stored ones, from "brin mem tuples" which are the ones to be used in memory.) I didn't read the other patches. Thanks -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "I'm impressed how quickly you are fixing this obscure issue. I came from MS SQL and it would be hard for me to put into words how much of a better job you all are doing on [PostgreSQL]." Steve Midgley, http://archives.postgresql.org/pgsql-sql/2008-08/msg00000.php