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 1t2l5U-006vmq-U5 for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Oct 2024 05:36:16 +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 1t2l5S-004e5o-9r for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Oct 2024 05:36:14 +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 1t2l5S-004e5g-0B for pgsql-hackers@lists.postgresql.org; Mon, 21 Oct 2024 05:36:14 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t2l5L-002AKI-SK for pgsql-hackers@postgresql.org; Mon, 21 Oct 2024 05:36:13 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5c935d99dc5so4262854a12.1 for ; Sun, 20 Oct 2024 22:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729488967; x=1730093767; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=YZ/aW18BxJ/5vzKrvYCL3ukD78wP7iVpapGAxeyykAQ=; b=cNEJScPkE0TinKvnsyjgLWSO0Gvqbuc8EbL5wB9WF9Dt96wDXGbqa1ZFAdyly3wKMR brPvJtnbR9VrIFuEaOpkWxYfbB91NNIWBaN+//kg/1ZuWN2ECp3jgpdr05p7yeMhcdCh nTs78puKj2eDIwGg2c3THrnKUlSdZt6sAX5i5SZAzCLmJMpPwe+QgQdIlB00qYX3ixGD MBQRWK2J7syoZdFtInrlvB3sXBYNzNIHDRDNxcvZ7T1spV+vPmcy35CRHHcckOog8NhH XEnaD1JYiqMEOdwRoK4zkWe2yC9cSx7dDbHsFVXuv6/wqbE7GWkwg5R+0wef9my2CO7O 43IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729488967; x=1730093767; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YZ/aW18BxJ/5vzKrvYCL3ukD78wP7iVpapGAxeyykAQ=; b=uvoW3y1TLpTo6m0VeWip5GjiRjc18KWn2dRRMa2MLhbv0DKxjCvX0400lLGguzo+8P DlJgo8ghb5sk/tyFGYDjx3esu6uxrxBlRE5Y1PeeISmimREOM9uFQblWI3EwGCxPmP0Z vTkK49jLuejjBLA0qABmM9xKmtMEK9l8OCjiRSChPOTuGCT+2dhM80JpeifM6inm823k 1R8fJz7Zj0Aacv8RROc08q9R60rlZ0q8g5qlWHVoZXGhfug1FrIjLNCk0sr9ljz6HpE9 V9G9VLHdUfP+hrzkqFS8PfZOu74hPaWOr2eCWnALxYO836PYdaBRu2MTiecvVbQWPkXx FS2A== X-Forwarded-Encrypted: i=1; AJvYcCXy6pc1kycIOEFPmgvKZZHqCTDTI6OS9AvBxmrIzDW7hWTmhGI9fQ5v0/FGc3q4qjQrZJLf3L5ZRHDWiNTo@postgresql.org X-Gm-Message-State: AOJu0YyRPrSyiWp6jRgdH9xhLgcMQTnen5KJo/PHIXC+g2TaJXPJ1N1F z9GOs+ty+hpMB7GJyHp1P1W9+NP2b3kGOEtXfTgCFc5edLcujd4y X-Google-Smtp-Source: AGHT+IERmCwElkGLn5EmAdm9BaKw8P1GhY9NxFHamdvCZkwd8R9uYahM3it1qmFf2e25wuu6eWvqaQ== X-Received: by 2002:a05:6402:2088:b0:5c8:8381:c054 with SMTP id 4fb4d7f45d1cf-5ca0ac6281cmr8484614a12.10.1729488966500; Sun, 20 Oct 2024 22:36:06 -0700 (PDT) Received: from [20.10.0.61] ([5.182.58.202]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5cb66a65424sm1559013a12.30.2024.10.20.22.36.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Oct 2024 22:36:06 -0700 (PDT) Message-ID: <3b6d9bcf-5b48-4210-921b-4641c74e1b39@gmail.com> Date: Mon, 21 Oct 2024 09:36:04 +0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: type cache cleanup improvements To: Alexander Korotkov Cc: Artur Zakirov , Alexander Lakhin , jian he , Pavel Borisov , Teodor Sigaev , Pgsql Hackers , Aleksander Alekseev , Tom Lane , Michael Paquier References: <1927cba4-177e-5c23-cbcc-d444a850304f@gmail.com> <8613a1d1-e19c-41fc-8b9d-efc62d63fc17@gmail.com> <57fe476a-01c1-452e-ad0a-8eb49123bd28@gmail.com> Content-Language: en-US From: Andrei Lepikhov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 21/10/2024 00:36, Alexander Korotkov wrote: > On Thu, Oct 17, 2024 at 12:41 PM Andrei Lepikhov wrote: >> I think the first patch may already be committed, and this little burden >> may be avoided in future versions. > I've integrated your patch. But I think > finalize_in_progress_typentries() is more appropriate place to check > typentry for NULL. Also, I've revised the > finalize_in_progress_typentries() header comment. I'm going to push > these patches if no objections. I agree with your idea. Also, I think it would be more conventional not to check the type entry for a NULL value but to test the 'found' value instead. And thanks for the injection points tests! I must have slipped my mind about this option. Now, the patch set looks good for me. -- regards, Andrei Lepikhov