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 1lOkmP-0007wA-AZ for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Mar 2021 17:25:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lOkmO-0002I0-6g for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Mar 2021 17:25:20 +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 1lOkmN-0002Ht-Qp for pgsql-hackers@lists.postgresql.org; Tue, 23 Mar 2021 17:25:20 +0000 Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lOkmL-0004jv-NB for pgsql-hackers@postgresql.org; Tue, 23 Mar 2021 17:25:18 +0000 Received: by mail-qk1-x736.google.com with SMTP id y5so13603855qkl.9 for ; Tue, 23 Mar 2021 10:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wi3ck-info.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=n3ksI3hnZyCJ/fyqF/bN5FX7yNKUXDbGh8Lu5deS/Eo=; b=upA2OIbjBANvD1UdmM49qoQSCo/Ol+IiEB/h3NvsYZYikrOKAJxraOsFTbykk4MooW R8qsIlZXSvBt141aRfsPX+l4eYeh0LVsSYqHPe/LwSfYs3nekYvL733IXUxHYfOkRaMn SfE7rMWDpuKW8CelDSAeKspBi1LW4QpX3SsYtpoatB5E8PZajpzDKYRBgw4pswcuQeL5 Yztz8omA2DLTnxEp0cIw1AImq8YtJ6WH9cr4uPx9AqbWWrABHDXisouR3Q+JiyBJImyc uuAOEXeUNVs0Br+q+KsDigqXNbBkxqqs8r2IQVFU1stblqi9L7rqF7ceFZHJ3Nvz6F3G EDjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=n3ksI3hnZyCJ/fyqF/bN5FX7yNKUXDbGh8Lu5deS/Eo=; b=BWYYpVETv8xYqIdD629RxAacnkdGt3dD02qBxOVc/CNpjkVVMHICsrOEc9o+aY56qs 7F1oEY42KYXSyGgGv6gVOM92pA6/NdOgjL3s0oWaio87XQl2R0+oUq7hBsr20WYDppio pG65Hvgkphm7L6QpcyIs6KkgBhPMWqv1IWfX+F0ykVxyO1Yp3dlVVd171GN5kjaOdBh7 qFAunHG19A+ovhwRQBWeEMXRbdYOy7WgCAL6tzdj2ANYkF8NkLJx/ARf+pbfIvbWFUSq +dYzkDh+oa5eisITRDdNaZuWfrokJEhPHVDN+rcJu7DeLy6X8MrDn6XJxzP6FewZekv0 8hFQ== X-Gm-Message-State: AOAM532ZIs94oqoNjZQK7zfm8xQHuXV80L41Wz2TC+d12E+jX/Dg8bZz +9F6TTx++mybC+6KLW9F+t28fvDsCZe+2Qyu X-Google-Smtp-Source: ABdhPJyu/VU/7YIA6vwuAB3gpIEPGoDXtEjcfl52ksd46qOgTvd1d15oFtvSf9CJDQEauMPUPy5tZQ== X-Received: by 2002:a05:620a:5b3:: with SMTP id q19mr6668885qkq.98.1616520316217; Tue, 23 Mar 2021 10:25:16 -0700 (PDT) Received: from jupiter.onmars.janwieck.no-ip.info (pool-98-114-241-134.phlapa.fios.verizon.net. [98.114.241.134]) by smtp.gmail.com with ESMTPSA id j3sm14007517qki.84.2021.03.23.10.25.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Mar 2021 10:25:15 -0700 (PDT) Subject: Re: pg_upgrade failing for 200+ million Large Objects To: Bruce Momjian Cc: Zhihong Yu , Andrew Dunstan , Tom Lane , Magnus Hagander , Robins Tharakan , Peter Eisentraut , "pgsql-hackers@postgresql.org" References: <1743618.1615222719@sss.pgh.pa.us> <4fbf92f2-ec91-f4fa-a259-f0968e34f3d7@wi3ck.info> <181907.1616253799@sss.pgh.pa.us> <147fa478-510b-18ef-5323-9c1725b2493c@wi3ck.info> <5bdcb010-ecdd-c69a-b441-68002fc38483@wi3ck.info> <3886649c-c77d-dfd7-08a4-d1606bc71254@wi3ck.info> <91ccdb0d-42fd-7413-4e7c-3d6445655d2e@wi3ck.info> <20210323145628.GD579@momjian.us> From: Jan Wieck Message-ID: <8d8d3961-8e8b-3dbe-f911-6f418c5fb1d3@wi3ck.info> Date: Tue, 23 Mar 2021 13:25:15 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210323145628.GD579@momjian.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/23/21 10:56 AM, Bruce Momjian wrote: > On Tue, Mar 23, 2021 at 08:51:32AM -0400, Jan Wieck wrote: >> On 3/22/21 7:18 PM, Jan Wieck wrote: >> > On 3/22/21 5:36 PM, Zhihong Yu wrote: >> > > Hi, >> > > >> > > w.r.t. pg_upgrade_improvements.v2.diff. >> > > >> > > +       blobBatchCount = 0; >> > > +       blobInXact = false; >> > > >> > > The count and bool flag are always reset in tandem. It seems >> > > variable blobInXact is not needed. >> > >> > You are right. I will fix that. >> >> New patch v3 attached. > > Would it be better to allow pg_upgrade to pass arbitrary arguments to > pg_restore, instead of just these specific ones? > That would mean arbitrary parameters to pg_dump as well as pg_restore. But yes, that would probably be better in the long run. Any suggestion as to how that would actually look like? Unfortunately pg_restore has -[dDoOr] already used, so it doesn't look like there will be any naturally intelligible short options for that. Regards, Jan -- Jan Wieck Principle Database Engineer Amazon Web Services