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 1uEppE-00Dfu5-I3 for pgsql-hackers@arkaria.postgresql.org; Tue, 13 May 2025 13:37:41 +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 1uEppD-005JGx-6B for pgsql-hackers@arkaria.postgresql.org; Tue, 13 May 2025 13:37:39 +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 1uEppC-005JGp-03 for pgsql-hackers@lists.postgresql.org; Tue, 13 May 2025 13:37:38 +0000 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uEpp7-001gMm-1g for pgsql-hackers@lists.postgresql.org; Tue, 13 May 2025 13:37:37 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 775751380044; Tue, 13 May 2025 09:37:31 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Tue, 13 May 2025 09:37:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.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 :references:reply-to:subject:subject:to:to; s=fm3; t=1747143451; x=1747229851; bh=9kSECo8rVouNcnfGPHRmlupIGslUH6csHjZUH4EOM6A=; b= 0IyGMcXb+qgRARC8G0kWKerRaOYjszPgVQUD4wov4w4d/Wf3X1b1vu7NGg2ZB+4h qHpuh1Y2UlZT6GU5Kpq9Wma4rKDNIe7FUg/u59jCdaqai90FnGo4ZSru5novHZ5B BrUNJCP6D50IhTYVq5awIf5wpeB/frJSEgCbyjy5H1VuOp7HL04lnhQQLpePkc+X nTYVc2DKFCmSigi2U8rZXFs1npDGCMvf6+/uSZThTv4IIrcJfMvspjGkRbqumJMx raJM2S7Y/1JB8RP8LVf+9uQ+SAOZRtNE2ROqd6Ty6agdEkzqT0xYMRHBQeHCL1Z9 lQrLUEwGTBZdTuUKqvbwqA== 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 :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1747143451; x= 1747229851; bh=9kSECo8rVouNcnfGPHRmlupIGslUH6csHjZUH4EOM6A=; b=D b6712h1NU0FD+JEimOZ+27F6Z5k5CTPk7TbcYLhCK5faidcmQsLq94SjKFnMIHHb y7y6d9zNFKJjzqjexYjY6nm2Z0eLr8TgiD4i0vh51Hz4x6hZxwQKTZWP4pWI4zNp nTg9fcOzTnf3Dce26cXIgyI8Qzb/1dMcd+Zy/d3FbvI6QTHBKhbLSoUWIF3iCbmx wcT+5SrD4REOBnNB81Z8MIKNoTNQim01zHnLO4GE+gAbqwz2Y/li6Dcms+hNf1rw rNVt97UVJ8m4rnbbX8SIkNvqm6SWf5Um0LznYMOsEGPCnwcHQuK/TlG7KB/BC/vc /xo217ualuyxPJx7MXg3A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeftdegvdegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkfhggtggugfgjsehtkefstddt tdejnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrh griigvlhdruggvqeenucggtffrrghtthgvrhhnpeeivdehhfetvdekgffgudfgjeegkeet heejtddthefhudegleefleekheegvedujeenucffohhmrghinheptghirhhruhhsqdgtih drtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pegrnhgurhgvshesrghnrghrrgiivghlrdguvgdpnhgspghrtghpthhtohepvddpmhhoug gvpehsmhhtphhouhhtpdhrtghpthhtohepjhhirghnrdhunhhivhgvrhhsrghlihhthies ghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsth hsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 May 2025 09:37:31 -0400 (EDT) Date: Tue, 13 May 2025 09:37:30 -0400 From: Andres Freund To: jian he Cc: PostgreSQL Hackers Subject: Re: using index to speedup add not null constraints to a table Message-ID: References: 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 Hi, On 2025-04-28 12:36:14 +0800, jian he wrote: > On Fri, Apr 18, 2025 at 4:07 PM jian he wrote: > > > > I don't have any good ideas to do the regress tests. > > I use > > ereport(NOTICE, > > errmsg("all not-null constraints on relation > > \"%s\" are validated by index scan", > > RelationGetRelationName(oldrel))); > > to do the tests. > > > for tests, just found out i can imitate > src/test/modules/test_misc/t/001_constraint_validation.pl, > > So I created a file: > src/test/modules/test_misc/t/008_indexscan_validate_notnull.pl > for TAP tests. The tests have not passed in a few weeks: https://cirrus-ci.com/github/postgresql-cfbot/postgresql/cf%2F5444 Greetings, Andres Freund