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 1kjlF2-0003Mh-Av for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Nov 2020 15:37:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kjlF1-0005Uh-9i for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Nov 2020 15:37:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjlF0-0005Ua-Vw for pgsql-hackers@lists.postgresql.org; Mon, 30 Nov 2020 15:37:27 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kjlEy-0003yB-BC for pgsql-hackers@lists.postgresql.org; Mon, 30 Nov 2020 15:37:26 +0000 Received: from [192.168.1.70] (ppp91-79-61-252.pppoe.mtu-net.ru [91.79.61.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id B75DD21C2FAC; Mon, 30 Nov 2020 18:37:22 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1606750643; bh=dBGUMOh/zrFBjenalLznMvA82bvqy6TqdRDLzirvtCE=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=a1USkyHbCTqsbv/qsGa/GK/uvx+ev7OGV40nl6QzOTsoo1foKQI8UrHazqcMVFGuD jDHV+q2AgkScWxbJyF+Jd63G+/j94MesjdwMPyUav+GpJJDSKitXs6a5tnq5YgWvkk Zc3Lc1RWbT9OMT0yXKAb6g9n+7fJfZWF690J2gV0= Subject: Re: Dumping/restoring fails on inherited generated column To: Peter Eisentraut , Masahiko Sawada Cc: Masahiko Sawada , Tom Lane , PostgreSQL Hackers 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> From: Anastasia Lubennikova Message-ID: <0f57d5e9-4112-1ba8-64d8-c02062c1e95d@postgrespro.ru> Date: Mon, 30 Nov 2020 18:37:22 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 09.11.2020 13:43, Peter Eisentraut wrote: > 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. > I am moving this patch to the next CF, but it looks like the discussion is a bit stuck. Peter, can you please share your concerns about the interaction of the patch with --binary-upgrade mode? If you don't have time to write tests, you can just describe problems. -- Anastasia Lubennikova Postgres Professional: http://www.postgrespro.com The Russian Postgres Company