Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rrNBy-000Epx-3l for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Apr 2024 19:19:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rrNBw-000wA5-Hi for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Apr 2024 19:19:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rrNBw-000w9x-8W for pgsql-hackers@lists.postgresql.org; Mon, 01 Apr 2024 19:19:36 +0000 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rrNBt-00015i-OW for pgsql-hackers@postgresql.org; Mon, 01 Apr 2024 19:19:35 +0000 Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-690fed6816fso24915006d6.1 for ; Mon, 01 Apr 2024 12:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711999173; x=1712603973; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=kMJX6eFTdllLgsZWg5yemy5d+UtlWnykqh4jMqQiOZU=; b=PxlYvT9AB8l3ZAeudyEklYztcw0n7fC3F0q7FwLUClckJiNapGPqWPUXYxb5XzypqI AwpgXoVeNExuwvBy5nnnsUWyRkjPLSWipf2huB7M7dH8JuyQhSggDcLHBYbqKYIqS1Uk 9Uda5O7+HnoY/oDEDvziJJxSqTnnIVc5Of7mzk0hB/pkbTJ9cBdOPxR5UkyyqPVBknxA iUV8CLtwFnOG45oYOGZdWrHX4dLeFP8cMFFz1Yl48KxafOhskRFUuJ1POEiPCTa7+e57 bFN7+MQEY6c9zR8GhgmzUGGzyrzN68XPW4hWO9vmWe55bvMavLqU8qhd1eORbRKY92xn Z00A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711999173; x=1712603973; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kMJX6eFTdllLgsZWg5yemy5d+UtlWnykqh4jMqQiOZU=; b=EIfaCVX4NG+u2JLxuLAHSUhWErPz1zUlQhPbO7ZDeO/mIdV3ZGKLVvzCEgBlTPhCgO SEGy1ej2R4/CuZrfMQyFMDlWECJckj9ApX4XWUFaFLCcHMKYIfewWHL+e+wusTqK56op MNt3q8plFS4YHBtjOLDjOma7ffni21P2s6BxHaYTCLYV1Ui2HyCba0ghLiJ0G1BMX8R6 fue8Uo0Ztof9s3VqgbrR6VTiCrG8DsM9lnLkNUqPEx8dhk2a2RjHOd9cDHasYx3/YsNW fJQtkYj8OPhxLxlKSEJViTGzfMyDRfnDx+zhOHLAVgBX9xRAIpmwHaMob4Y7nxB6szWw BRtw== X-Forwarded-Encrypted: i=1; AJvYcCXFv0pKMjC4TDbmOO4gVinykJ9LWsQ649IBdSL9rp+DufmlZdWQ0r6hNfdF8J/kvy/79dHS2YtgNWAFF81wp04ZRIvGGCpACLwVc7Ta X-Gm-Message-State: AOJu0YydvR/BLDkQkBSnELLvkYvLONcsh5xnSvzuYjnKIVygR3rtdjRw OAAiHoZLvbB3L/8FcSbs45Jgfg3+Bs2GRm55Qronhf3iS3xgo5LR X-Google-Smtp-Source: AGHT+IH5b8WzE7PmQ3VQct/PwP9jR9iPB6XW8rKwueM2RZjS/pozTJaCW1IP4v6Ifjb7pW3hdcjyIw== X-Received: by 2002:a05:6214:459c:b0:698:fbb0:2332 with SMTP id op28-20020a056214459c00b00698fbb02332mr10316464qvb.61.1711999172841; Mon, 01 Apr 2024 12:19:32 -0700 (PDT) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id nf2-20020a0562143b8200b00698f25b7349sm3606052qvb.74.2024.04.01.12.19.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 12:19:32 -0700 (PDT) Date: Mon, 1 Apr 2024 14:19:30 -0500 From: Nathan Bossart To: Tom Lane Cc: Michael Banck , Laurenz Albe , vignesh C , "Kumar, Sachin" , Robins Tharakan , Jan Wieck , Bruce Momjian , Andrew Dunstan , Magnus Hagander , Peter Eisentraut , "pgsql-hackers@postgresql.org" Subject: Re: pg_upgrade failing for 200+ million Large Objects Message-ID: <20240401191930.GA2302032@nathanxps13> References: <2055911.1702258962@sss.pgh.pa.us> <557FD681-3929-44A1-87B2-6B5E10C4A66B@amazon.com> <842242.1706287466@sss.pgh.pa.us> <4a3ebf7d81bfc6dd4d545e5b27d6e8f6c32d8937.camel@cybertec.at> <3023817.1710629175@sss.pgh.pa.us> <6603e4e0.500a0220.a557f.4f39@mx.google.com> <3304322.1711551245@sss.pgh.pa.us> <20240327150826.GB3994937@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240327150826.GB3994937@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Mar 27, 2024 at 10:08:26AM -0500, Nathan Bossart wrote: > On Wed, Mar 27, 2024 at 10:54:05AM -0400, Tom Lane wrote: >> Michael Banck writes: >>> What is the status of this? In the commitfest, this patch is marked as >>> "Needs Review" with Nathan as reviewer - Nathan, were you going to take >>> another look at this or was your mail from January 12th a full review? >> >> In my mind the ball is in Nathan's court. I feel it's about >> committable, but he might not agree. > > I'll prioritize another round of review on this one. FWIW I don't remember > having any major concerns on a previous version of the patch set I looked > at. Sorry for taking so long to get back to this one. Overall, I think the code is in decent shape. Nothing stands out after a couple of passes. The small amount of runtime improvement cited upthread is indeed a bit disappointing, but IIUC this at least sets the stage for additional parallelism in the future, and the memory/disk usage improvements are nothing to sneeze at, either. The one design point that worries me a little is the non-configurability of --transaction-size in pg_upgrade. I think it's fine to default it to 1,000 or something, but given how often I've had to fiddle with max_locks_per_transaction, I'm wondering if we might regret hard-coding it. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com