Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOOWc-0007pM-Jo for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Oct 2020 17:07:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kOOWb-0001gB-FU for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Oct 2020 17:07:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOOWb-0001g3-7s for pgsql-hackers@lists.postgresql.org; Fri, 02 Oct 2020 17:07:17 +0000 Received: from forward5-smtp.messagingengine.com ([66.111.4.239]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOOWT-0006JB-JG for pgsql-hackers@lists.postgresql.org; Fri, 02 Oct 2020 17:07:16 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 582751940797; Fri, 2 Oct 2020 13:07:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 02 Oct 2020 13:07:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=8ShjHhVkiKHfyFANbxuVPFqN+AjXiMmyyc+aVAaHE as=; b=QYqswsy4XQXqD1pRrVMTCREAvyJ3rJ0qe5ah81nV4nf+1/OiUGP6PMn47 0aGrLGAvG1MYYP7oyvMSNLnpJjtj4kckZUBlBc3JjZUT54QLoeUYp85aetxaL1T+ Rsq0K7z5Z+NFReYnvh/rmf8WmEqAq0IdBPe9e2QXKcyVNyOoo8HuJhzOquSPAyUD oVogN3ZtlZRfQ1LIV1Isqy/QlV0RDuMRmHNXZvecBbm3wjvmdc8rJ6JEv0FD4y2j 9VqNPL1KWMnyRUU3VdgkFR9rqaoLDv5Gq6fhk8oIxi0e/eWU67Efzb1UHBhKcdpf nuU7NPBf6lurvoQBEiRpwRdANVxcg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrfeeigddutdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnheptdevgeehtdejvdevvdel jeeuveejjedtleelgfekleefieekjeelgfektdduuedvnecuffhomhgrihhnpedvnhguqh hurggurhgrnhhtrdgtohhmnecukfhppeekjedrudejjedrieegrdduledunecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghish gvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p57b140bf.dip0.t-ipconnect.de [87.177.64.191]) by mail.messagingengine.com (Postfix) with ESMTPA id D011D3280060; Fri, 2 Oct 2020 13:07:05 -0400 (EDT) Subject: Re: Dumping/restoring fails on inherited generated column To: Tom Lane , Masahiko Sawada References: <15830.1575468847@sss.pgh.pa.us> <31905.1575491779@sss.pgh.pa.us> <24369.1580758361@sss.pgh.pa.us> <3f272982-0e0d-17a1-3fb6-fedc74197676@2ndquadrant.com> <3169466.1594841366@sss.pgh.pa.us> <660925.1601397436@sss.pgh.pa.us> Cc: Daniel Gustafsson , andrewbille@gmail.com, PostgreSQL Hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Fri, 2 Oct 2020 19:07:04 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <660925.1601397436@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-09-29 18:37, Tom Lane wrote: > Unfortunately this has still got a problem: it will mishandle the case of > a child column that is GENERATED while its parent is not. Peter opined > way upthread that we should not allow that, but according to my testing > we do. Did I opine that? Commit 086ffddf3656fb3d24d9a73ce36cb1102e42cc90 explicitly allowed that case. What we don't want is the other way around. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services