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 1s2p33-006RBD-LU for pgsql-hackers@arkaria.postgresql.org; Fri, 03 May 2024 09:17:45 +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 1s2p30-007ifz-Ud for pgsql-hackers@arkaria.postgresql.org; Fri, 03 May 2024 09:17:43 +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.94.2) (envelope-from ) id 1s2p2y-007if4-Sn for pgsql-hackers@lists.postgresql.org; Fri, 03 May 2024 09:17:43 +0000 Received: from fhigh8-smtp.messagingengine.com ([103.168.172.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s2p2x-001DZ7-9z for pgsql-hackers@postgresql.org; Fri, 03 May 2024 09:17:40 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.nyi.internal (Postfix) with ESMTP id D59CF114013D; Fri, 3 May 2024 05:17:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Fri, 03 May 2024 05:17:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; 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=fm2; t=1714727857; x=1714814257; bh=cfU60zFKWcnTM1BebY6hv2xtwuLEZUKA CADjAhe/fyM=; b=GmiNjx1ebmhjQr/0ePuK24IK8jQqRldShmj3vAmFycspVR1k UmQl2So1Ygnd4b6HEKUaRaLLl9U8Zl1GQfzGX827Dda/qoXW2nyZPiqyMu7o7d9x k5TXxJS9zSoMrj5+0cBflIauhK30WW0iSlrbDrpJ4Ye+uzLS9Z8KUswXRA69uVHE V/BSoig8+NJnwb8k3hliBqKdlUB8OhGgXJ1zx6+DKBXXavJLMm38L8mopI1ALbbN Mwf3y2H0mDn74JnJXGIOK0XUpe5pSITZlFYHfII/p4nZJ1mwcAg/Pwqrdq9ZlQU/ x85SqpuWQG/5LFFTgSua2q0zvyw1oMufDUoTVQ== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1714727857; x= 1714814257; bh=cfU60zFKWcnTM1BebY6hv2xtwuLEZUKACADjAhe/fyM=; b=P kKw+HogagD4YAhPqq+QwzekpmultfAWCl0aPREACs3+PpQLuLjuG4oaTWZm+Ngnr ShQ+be+adT+G8uD/ONx7WAJV9Vq10zOx53AN4Ov0jGMt7wEcUP/s6RDxjFWoxEnh 6B6QNZDjabDhgHzOik9VMx21zKVZw7qpXT5jscwkzsd/UkjKcNW1Z+X7yDUUx25F lzMR6jBvuO/+b+Ix64a1VzKS4MdQlC4vTDhHOZVwxgJpiO5oSC+5wQUfTaLHp8iK d8FrSVN0aadvs1w5Qg8p59kE4jBM4JtEbuqzH5pMeF1RcC8h0o3MgPoGYS+RKzb8 p/19TZkO43sBwBV4dguqg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvtddguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgh eqnecuggftrfgrthhtvghrnhepgfejtdfhkeeftdeugfeileehteeljeeghfeuledthfeu tedvffdukeefjefhgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 3 May 2024 05:17:36 -0400 (EDT) Message-ID: Date: Fri, 3 May 2024 11:17:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: tablecmds.c/MergeAttributes() cleanup To: Robert Haas , Ashutosh Bapat Cc: Alexander Lakhin , pgsql-hackers , Alvaro Herrera References: <20230829112028.qhzse7chs3swqwqh@alvherre.pgsql> <60beec03-f14c-ea46-8e5f-f68773ce83f9@eisentraut.org> <12e27bdb-1a3d-450f-923b-c36feea24f01@eisentraut.org> <4da47c8d-c234-ee1e-f8a4-4ca9a3a81aec@gmail.com> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 30.04.24 21:48, Robert Haas wrote: > I took a look at this patch. Currently this case crashes: > > CREATE TABLE cmdata(f1 text COMPRESSION pglz); > CREATE TABLE cmdata3(f1 text); > CREATE TABLE cminh() INHERITS (cmdata, cmdata3); > > The patch makes this succeed, but I was initially unclear why it > didn't make it fail with an error instead: you can argue that cmdata > has pglz and cmdata3 has default and those are different. It seems > that prior precedent goes both ways -- we treat the absence of a > STORAGE specification as STORAGE EXTENDED and it conflicts with an > explicit storage specification on some other inheritance parent - but > on the other hand, we treat the absence of a default as compatible > with any explicit default, similar to what happens here. The actual behavior here is arguably not ideal. It was the purpose of the other thread mentioned upthread to improve that, but that was not successful for the time being. > So now I think this is committable, but I can't do it now because I > won't be around for the next few hours in case the buildfarm blows up. > I can do it tomorrow, or perhaps Peter would like to handle it since > it seems to have been his commit that introduced the issue. I have committed it now.