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 1rrNUA-000Gnh-QV for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Apr 2024 19:38:27 +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 1rrNTB-0015i9-AS for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Apr 2024 19:37:25 +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 1rrNTA-0015i0-VH for pgsql-hackers@lists.postgresql.org; Mon, 01 Apr 2024 19:37:25 +0000 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rrNT7-0001Dj-QE for pgsql-hackers@postgresql.org; Mon, 01 Apr 2024 19:37:24 +0000 Received: by mail-qk1-x72f.google.com with SMTP id af79cd13be357-781753f52afso276358785a.2 for ; Mon, 01 Apr 2024 12:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712000241; x=1712605041; 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=Ben311eYWldWj9nuXrF+7CMx/ueGfubfgoEBcSAq/wo=; b=IY0TCbONlJmSwv8P/CtnYZNwX9yJlLV7xLQdJEDYUvvJcvJzchRUqHK/ytZ0iz/Igp lwl1k4oFIyPeF1VBTbG948822n4W65QJYXCgT7BmkMxHucw/tUyGv3wXAdhc/tbOQ+6d RMnRdywlunI9yI/iZ642L1FvNZnTIOb52I31t0lOY500sYHyezbs1v0m+a0vfRGj7aFe kepkchpHoXizL7Q4MkF68h3QOnGIfeScfOGsBr+9JZ510nvCh+jOOVB6rBGacD7nY44K 4LoHTFg0PsYtg9SrtS0/14HzJK0S2SHcXtWweH9CvdKgxQoeYXVmCbJSYY0wtSvASeZn Qc2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712000241; x=1712605041; 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=Ben311eYWldWj9nuXrF+7CMx/ueGfubfgoEBcSAq/wo=; b=GWUf9lpyU7WhisuQKyZaoFeAWHsb6m5Qhi0oIyqbAs9HxYbeB2IbKvRoIEO9a7M5AT fPHchaQRzOQrbeWUdLCT84f/JIqJh5w0QASUP21Kou7jzlBOO0as+DLrJJq6Qds8qLMD zqabADyi0NMUWxDXCqfuhU/sswA+Wg7SCekzTND+T4Ztq6CM1cfKSz/5cA2reqjMSOFu EQh0/J7N/0tMUNtXmWg8wULZ8h7TnILm1W5OihFXfHs2VDtfJ83g7B1QkXh4Z2QScYtS oMXm5k/9bGtEBrpVaGTWS8RLbJ2xyhZl4VC0tZV5Jgu76KAzAMHfVpBkxlkTXmsytuZN 84iQ== X-Forwarded-Encrypted: i=1; AJvYcCUp33qPmCxOdtm4L1yrlANaHllGDDvPn2q7Lp9H/4f0Im9Izc77NscaRSaIQNPucvPlL9ej9qhcazyHta+Z+c1vJO2aEGiUqcC0dzRZ X-Gm-Message-State: AOJu0Yx/46evCqSOvDRYfa5MjO9AkyuSAGjCyJwivU6I+wrkmrwxNtDv GwNIe1IPSJJ6K2vJUEexnhhStgprWDZyfBx3JlQ2IBHjbGLoA+vJ X-Google-Smtp-Source: AGHT+IHNmoj+dHPrRLBJZcOmdqX0yI8vO6vrxV1DQFDzX2835gC7/XQSG0VY0b9zEPrYpzYen/LBQA== X-Received: by 2002:a05:620a:88b:b0:78b:c72a:a7b2 with SMTP id b11-20020a05620a088b00b0078bc72aa7b2mr10948730qka.59.1712000240809; Mon, 01 Apr 2024 12:37:20 -0700 (PDT) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id i22-20020a05620a27d600b0078be83fc34asm615164qkp.125.2024.04.01.12.37.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 12:37:20 -0700 (PDT) Date: Mon, 1 Apr 2024 14:37:18 -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: <20240401193718.GB2302032@nathanxps13> References: <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> <20240401191930.GA2302032@nathanxps13> <1217588.1711999706@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1217588.1711999706@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Apr 01, 2024 at 03:28:26PM -0400, Tom Lane wrote: > Nathan Bossart writes: >> 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. > > Well, we could add a command-line switch to pg_upgrade, but I'm > unconvinced that it'd be worth the trouble. I think a very large > fraction of users invoke pg_upgrade by means of packager-supplied > scripts that are unlikely to provide a way to pass through such > a switch. I'm inclined to say let's leave it as-is until we get > some actual field requests for a switch. Okay. I'll let you know if I see anything. IIRC usually the pg_dump side of pg_upgrade is more prone to lock exhaustion, so you may very well be right that this is unnecessary. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com