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 1kc4eI-0000QA-SC for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Nov 2020 10:43:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kc4eH-0008OD-R0 for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Nov 2020 10:43:45 +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 1kc4eH-0008O6-Jp for pgsql-hackers@lists.postgresql.org; Mon, 09 Nov 2020 10:43:45 +0000 Received: from wforward3-smtp.messagingengine.com ([64.147.123.22]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kc4eE-0000JZ-U9 for pgsql-hackers@lists.postgresql.org; Mon, 09 Nov 2020 10:43:45 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id 4E7BC1286; Mon, 9 Nov 2020 05:43:40 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 09 Nov 2020 05:43:40 -0500 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=fm1; bh=1AemfjAJWIZyxHsRzipk1nkYI3Oldrq5Yv8P2R8/u KQ=; b=LgnKDH9sd4GKrg5Q1j1qHTv2I4YSoffOoPcMHKvjEY+oj6RnleqN/l31I HOl/b2URFnnOmCV+Fd4msGVQoJuTJ+r0ST6V6o4oyvRZH9sPCUvidftHyfMFTkH+ qO2mK94n594T/4kvH6rgj29G7RdzRo0niCAAGfANy2Nmpq6A3YzK8PmUp21uiaIt 6pToPNVhdoOxDwKiXXdORfnbPJh5KSZzsCKHel2tUQq/Grjc6bTesJldLlhJK/O2 M6icRBgKfu4CkHnslGu2GqjNtQ/HSCDfoVXeGjpnL3Joyxd7HgjXELMJ2hHzRbK8 5FrjSFofVQcIgDxrI9htI2LB9qyFg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudduhedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnheptdevgeehtdejvdevvdel jeeuveejjedtleelgfekleefieekjeelgfektdduuedvnecuffhomhgrihhnpedvnhguqh hurggurhgrnhhtrdgtohhmnecukfhppeekjedrudejjedrjeehrdelgeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvg hnthhrrghuthesvdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p57b14b5e.dip0.t-ipconnect.de [87.177.75.94]) by mail.messagingengine.com (Postfix) with ESMTPA id DE9923063067; Mon, 9 Nov 2020 05:43:38 -0500 (EST) Subject: Re: Dumping/restoring fails on inherited generated column To: 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> Cc: Masahiko Sawada , Tom Lane , PostgreSQL Hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Mon, 9 Nov 2020 11:43:38 +0100 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: 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-11-06 04:55, Masahiko Sawada wrote: >> Both of these result in the same change to the dump output. Both of >> them have essentially the same idea. The first one adds the >> conditionals during the information gathering phase of pg_dump, the >> second one adds the conditionals during the output phase. >> >> Any further thoughts? > I think the first one is better than the second (mine) because it can > save the number of intermediate objects. I was hoping to wrap this issue up this week, but I found more problems with how these proposed changes interact with --binary-upgrade mode. I think I need to formalize my findings into pg_dump test cases as a next step. Then we can figure out what combination of tweaks will make them all work. -- Peter Eisentraut 2ndQuadrant, an EDB company https://www.2ndquadrant.com/