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 1w5lIK-003bMp-1s for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2026 14:02:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5lIJ-002zOh-0K for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2026 14:02:43 +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 1w5lII-002zOV-1H for pgsql-hackers@lists.postgresql.org; Thu, 26 Mar 2026 14:02:43 +0000 Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w5lID-00000001INB-081X for pgsql-hackers@postgresql.org; Thu, 26 Mar 2026 14:02:42 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id A9E341D0015C; Thu, 26 Mar 2026 10:02:34 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Thu, 26 Mar 2026 10:02:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1774533754; x=1774620154; bh=zc4yfOtmrw qwaldbdkHokQkJ+rNaeNi/paWu+VhZ7As=; b=AZJJFWY2R3pwWvHausyWBlmPoz UFDKYgQcxYtsN3E/3hAm0rDFXfYqxnn/1rChj5idy0kpRun+wOv4VJNuXIw8OZVl QkbsXmPVLg5lma1RXWhVW2pbB4DrB02OPqr3lgwN6gs2HiyOpDSQbNZ9H1uOpudl 2rt1VrQllXl3HkTD+KCsQ6sAnjrrs/rsLwfZxP0lBYlfDMKGSIy3SR8DsAi3q3s6 j0Me7sMVMgqfONH8sVzscckeAbv9WUJ8r2teCV3dQVUmzODu/n9I5OHHfl+mv219 EkcYj34iqrYfxW1EUZhEdfnKA940d1deT7rIlKEORPCzxo3pKzn5/i04Lz1g== 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:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1774533754; x=1774620154; bh=zc4yfOtmrwqwaldbdkHokQkJ+rNaeNi/paW u+VhZ7As=; b=fsQmLVEKhMdJ0Iu0WEDwSsAJx8oxsHPJykJYgccVzZxJSbLqNsv aalFWI44rehyp3j5cSay0YRTVVgy7HtNeu8z2XDXGit2qdbWU+wGeoQmxaRC8Wzz uLQZJ78E+Bqtrc0BT+1xivXAWdQwzL3Je7H0DTRLr+sJ8sMBNhghuJJisfEFdX3+ HjlaMdFTLdsbIJxM4n05CM9/mv7QWsro7i3Z/MelgMsSqcTB3JQxSPnWBg1vMp2b t4428F17ZLTvRAcMhTOalwal958whZEhwgeDHsXAzRNbYcAJzgjVcbtkpAKCPE5w QZgqIDZdeTb1K8RoXItJLWhz20mngz0b9Yw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefvdejheeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggujgesthdtsfdttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnhepfeffgfelvdffgedtveelgfdtgefghfdvkefggeetieevjeekteduleevjefh ueegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hnughrvghssegrnhgrrhgriigvlhdruggvpdhnsggprhgtphhtthhopeeipdhmohguvgep shhmthhpohhuthdprhgtphhtthhopegughhrohiflhgvhihmlhesghhmrghilhdrtghomh dprhgtphhtthhopeguihhlihhpsggrlhgruhhtsehgmhgrihhlrdgtohhmpdhrtghpthht ohepthhhohhmrghsrdhmuhhnrhhosehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhosh htghhrvghssehjvghlthgvfhdrnhhlpdhrtghpthhtohepnhhorghhsehlvggruggsohgr thdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvsh hqlhdrohhrgh X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 26 Mar 2026 10:02:33 -0400 (EDT) Date: Thu, 26 Mar 2026 10:02:33 -0400 From: Andres Freund To: David Rowley Cc: pgsql-hackers@postgresql.org, Dilip Kumar , Jelte Fennema-Nio , Thomas Munro , Noah Misch Subject: Re: Test timings are increasing too fast for cfbot Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-03-26 11:09:36 +1300, David Rowley wrote: > On Wed, 25 Mar 2026 at 16:15, Andres Freund wrote: > > Code wise, the most immediately noticeable things are > > > 3) verify_compact_attribute(), pretty spread around > > We do now have TupleDescFinalize(), where those could be checked just > once rather than on each call to TupleDescCompactAttr(). That's not > quite as watertight a guarantee as someone could change the > FormData_pg_attribute after TupleDescFinalize(). Just doing it in > TupleDescFinalize() would at least still catch the places where people > forget to call populate_compact_attribute() before > TupleDescFinalize(). Maybe verify_compact_attribute() could just do an assert comparison between the underlying non-compact attribute and the compact one? Or even just an assert checking if the compact attribute is initialized, with the full checking happening in TupleDescFinalize(), as you suggest? > I would have expected this to be a little less overhead now since > d8a859d22 removed the calls to TupleDescCompactAttr() in the main > deforming routine. Maybe I should just make that change in the other > deformers...? Might be worth it. > Do you have an idea of which callers of verify_compact_attribute() are > causing the most overhead? I'm not sure how much to believe the profile when the costs are as distributed as they are here. But according to the profile it's - heap_form_tuple - heap_form_minimal_tuple - index_getattr - nocachegetattr Greetings, Andres Freund