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 1vkJnW-00DaDc-0M for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Jan 2026 10:26:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vkJnV-007OX5-0G for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Jan 2026 10:26:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkJnU-007OWe-2W for pgsql-hackers@lists.postgresql.org; Mon, 26 Jan 2026 10:26:17 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vkJnS-002NLE-0m for pgsql-hackers@lists.postgresql.org; Mon, 26 Jan 2026 10:26:15 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-b885e8c6727so557425866b.1 for ; Mon, 26 Jan 2026 02:26:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769423173; x=1770027973; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=yeUSaPEcXFV3Cxrk/+e9sriyfiRwoUBImCfAJwCshmo=; b=cvx9w27BtCUdlxG5Iafp8hWGP3Liy78Pqa5pdDE3jRPn4N/tHMfoMLfNd8ZKt0El1h u7YaRfOeEErZbaezteaULxWPvrVU2nmfrZwzFM319+X87xnY1+l8XAQvElQ+J2QJ13eu hW9RrZuX9G3DTnCRxcYkH7a33LY8hQPrv1xVLg2Z6cZzG7Rn2wu1PGzvYPFs7Wc9PmlA 0TC4N08Hoedz1+r/lBVxaqdFX/opuC1+lVJeYIcuqVw9KOCh2PqHpanVAiwig5uxiL2V naCcyKDlegyj4v7yGOLxTOXVq3IJH/HOsipmnqSFECoKy+Zl7XPPfllvAZSRleH8wbzQ A87Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769423173; x=1770027973; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yeUSaPEcXFV3Cxrk/+e9sriyfiRwoUBImCfAJwCshmo=; b=iggLihq+svIuFwgYvKHMehLNTFeSx/3jYJPuhTR4BW/ttJYM0BNuO44WyriPkRfSla RbuxGs6teugHLS+Awle9/bvRe1QtUH12tteMQe8A3SsOxnuGQCPDlaomlRO4VztJ0Ueg qx1SmHd2pdswSvdirxzVvyBV/OhPQjhKsVZWSUXGXRXvZJl3kCuKpAyJlnWktG/XU1xa uEOqBUD9A6JYsf6yKI/hl5x4iZXmC1cfMetkRqfViBnka4m8ZcU7TIQUJW0/SKfFH2kR gwSU2IBpJHL3AKZ1jY3591RYqc7kHDCYZyyDD5VuJ5Q7KPTLdr9IEAHUuVt5s0xZD7sH kAcQ== X-Forwarded-Encrypted: i=1; AJvYcCWWT4GJKXSU2MngyVrmZFpqa0+h06QzIOXphFHgKNufFUwirm6X6mUm7InUUFby3hl0XGgaAA4z7YjGLSkP@lists.postgresql.org X-Gm-Message-State: AOJu0YwcqhzcczuRO21LJdHoC3U8b21/ih7UUqIL9lgR5YNr1gTBXVvt ZL3G9azQqn8GxAkr0yOCQoQ8C41N9bARrZ/FmfAVPnHGEXhEqD8xe7jp X-Gm-Gg: AZuq6aJLGd5NVaI0IITO+V8VEybZwjBsa7qrPQLmSCl5hDn+tirKK3+XnuI8fWceFXh O68PGulP058bo3UO2PBeBhuuIq9V+kn3d6BKECUx7fvUX55A49IIqpnzk4e+AXV/611/DVs8BqS 7BGOJ9TBzqBGRSe8KqI75M/hxt55PZjrW9FGXzkQbMJBOOcYUpV8J2MIqHUz/Er/ENJ3fa17O4K vw0XoeuNhff7KCGyhqj11Wjqk7JDHPb0pET9+oC20B6S94nkcP+MwUZI1WHU/qeiJMPhQ64kdu+ KclnzrTj0loANOuqKITTCeZu+s4g0/xkdA164+KzXrKZ2czvM0KjDTh+UkTi9rg6WaBhjQyAayB yRf5hbVJbvuoFqTJDYTNX+FoSkaK/Z2UO0QoFSde2gSxQjlI0uUAT8T63mVpxwygy8Li2/8ojC1 oMsy1EVElb2hE2raL36RaDXuQoQeizfcoIDydNj4gzUfH6ho+DeFJNKZCqX3CGxy14NJ33NJ9D5 MkLzS80eTS0qk1ShsfYhJ3xcFuXPwkbHOzS0s3pasdK9Q== X-Received: by 2002:a17:907:7205:b0:b87:2abc:4a2a with SMTP id a640c23a62f3a-b8ceed5a231mr305441066b.1.1769423173116; Mon, 26 Jan 2026 02:26:13 -0800 (PST) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b885b3dad3asm617330666b.12.2026.01.26.02.26.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jan 2026 02:26:12 -0800 (PST) Date: Mon, 26 Jan 2026 10:26:11 +0000 From: Bertrand Drouvot To: Jelte Fennema-Nio Cc: Thomas Munro , pgsql-hackers@lists.postgresql.org Subject: Re: Safer hash table initialization macro 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 Hi, On Mon, Jan 26, 2026 at 11:05:49AM +0100, Jelte Fennema-Nio wrote: > On Mon Jan 26, 2026 at 9:41 AM CET, Bertrand Drouvot wrote: > > Also, I can see (I think it's coming from 0004): > > Are you sure you applied the latest one, I had seen that in CI and fixed > it in v7. Should definitely be fixed now at least. I can still see it. If I apply from 0001 to 0004 and compile, I see it. It looks like it's fixed in 0005: index 54a418a2503..e102adf9f83 100644 --- a/src/backend/utils/cache/typcache.c +++ b/src/backend/utils/cache/typcache.c @@ -2409,14 +2409,13 @@ InvalidateCompositeTypeCacheEntry(TypeCacheEntry *typentry) static void TypeCacheRelCallback(Datum arg, Oid relid) { - TypeCacheEntry *typentry; - /* * RelIdToTypeIdCacheHash and TypeCacheHash should exist, otherwise this * callback wouldn't be registered */ if (OidIsValid(relid)) { + TypeCacheEntry *typentry; RelIdToTypeIdCacheEntry *relentry; /* but I think that the fix should be in 0004 so that each sub-patch compile without warnings. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com