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 1oW2oG-00064k-2Y for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Sep 2022 21:42:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oW2oE-0000qE-Gt for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Sep 2022 21:42:10 +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 1oW2oE-0000q5-5N for pgsql-hackers@lists.postgresql.org; Wed, 07 Sep 2022 21:42:10 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oW2oB-0007SB-Lb for pgsql-hackers@postgresql.org; Wed, 07 Sep 2022 21:42:08 +0000 Received: by mail-pj1-x102d.google.com with SMTP id fv3so9704755pjb.0 for ; Wed, 07 Sep 2022 14:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timescale.com; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=NMN6m9o1UjYd6DouB7vuhXb1cEChHC+riCHgEiYtCns=; b=Uoenzq5Q2ObwxzZyrzVEL6gdA7Gn6Nixtb3T8fLOg3+HspCix7tQ1v04fdGrbmFs73 sE9JED3iDkTHwdYq/DSVoNBSVrxLRjYAUGya0mdZepTFHtxXDzg/XCWCm7rQOvIbp8YB atd7S/c5XVQoH6DQv4FJ3S+ulKza60Ljlr3eSQ7lWd/5QnLmmy6SOaoGN+4XB0qlQNzz gpGh3Zz4V3b45CT5hP5WxLXvNrCrSVzZZyrcVQGArR9+CwOyJowXpVpWEzhk6UpT196c QCIqSWheEhbYfNJzAjdPsABlPtK4cyVNyV3sKDx+VT6A740deVfMO3j/iB/hTsbeAb29 1foA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=NMN6m9o1UjYd6DouB7vuhXb1cEChHC+riCHgEiYtCns=; b=C33fmK0GWLQHitNe/wDMA2xqzAMzNDAyvRJGpc0TySQDo3tZJiJ1Wyl0BD37xPZDLZ 89dC9dViwrNlJQrKYYYkwqdvAqofX2teXQZZH0cWR/Xcc4JCB10DBTtd2VByOWE642Wv rVB98kcAQ4Ddui7lIAkEvU8bltytzJiDetBXRzhHvD2KKe/49l3Rvk+NBYInDs4pBZ7G hDMjEYYDSaWYSeuHqmwvYopfskuaRzJLkKWFQxp89Pr2iNjVW44Ow/ry1bEi/CZfs5gZ xZilaSTm+PS/y/l09hfJkWo0SgZj+sHModBliWnjTI81MfWcufoA/sytsAoEA4ukepu1 e3Vg== X-Gm-Message-State: ACgBeo3BqiAjSUcsOjYDv829+L0jD/kC4L5RMwmX5jfDHMZz9JYxj1aO DUuU5EfKrf4rvVARujpbCMOlCw== X-Google-Smtp-Source: AA6agR78oeInjLYVoPohDWbcHj+DkTAM8QEctmkswPQjPlJKyc2uT1ZvNqglKLaQIKikUpjXqL5+pA== X-Received: by 2002:a17:902:f541:b0:176:e8f1:cd57 with SMTP id h1-20020a170902f54100b00176e8f1cd57mr4843778plf.8.1662586926555; Wed, 07 Sep 2022 14:42:06 -0700 (PDT) Received: from [192.168.1.21] ([50.39.205.221]) by smtp.gmail.com with ESMTPSA id a11-20020a1709027d8b00b00177e590df96sm1437821plm.118.2022.09.07.14.42.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Sep 2022 14:42:06 -0700 (PDT) Message-ID: <663393ca-b2ff-26f0-2e2d-adc942aff4fd@timescale.com> Date: Wed, 7 Sep 2022 14:42:05 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: pg_upgrade failing for 200+ million Large Objects Content-Language: en-US To: Nathan Bossart , Jan Wieck Cc: Tom Lane , Bruce Momjian , Zhihong Yu , Andrew Dunstan , Magnus Hagander , Robins Tharakan , Peter Eisentraut , "pgsql-hackers@postgresql.org" References: <91b02dc1-f0d9-e50d-849c-18d9a66484fb@wi3ck.info> <985941.1616524546@sss.pgh.pa.us> <986904.1616525964@sss.pgh.pa.us> <6cccaa33-c263-b8a2-b064-985605d33d25@wi3ck.info> <988415.1616528159@sss.pgh.pa.us> <872315a8-99fc-da4e-463d-784cfb5a025d@wi3ck.info> <1010642.1616532950@sss.pgh.pa.us> <802b96e9-f5e1-015c-dfb9-8756974b11fc@wi3ck.info> <0263bf35-05d6-02a1-519b-b7895a918314@wi3ck.info> <20220825003227.GA1456581@nathanxps13> From: Jacob Champion In-Reply-To: <20220825003227.GA1456581@nathanxps13> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/24/22 17:32, Nathan Bossart wrote: > I'd like to revive this thread, so I've created a commitfest entry [0] and > attached a hastily rebased patch that compiles and passes the tests. I am > aiming to spend some more time on this in the near future. Just to clarify, was Justin's statement upthread (that the XID problem is fixed) correct? And is this patch just trying to improve the remaining memory and lock usage problems? I took a quick look at the pg_upgrade diffs. I agree with Jan that the escaping problem is a pretty bad smell, but even putting that aside for a bit, is it safe to expose arbitrary options to pg_dump/restore during upgrade? It's super flexible, but I can imagine that some of those flags might really mess up the new cluster... And yeah, if you choose to do that then you get to keep both pieces, I guess, but I like that pg_upgrade tries to be (IMO) fairly bulletproof. --Jacob