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 1lOlsj-0002Gn-5K for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Mar 2021 18:35:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lOlsh-0005Bf-SB for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Mar 2021 18:35:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOlsh-0005BX-LK for pgsql-hackers@lists.postgresql.org; Tue, 23 Mar 2021 18:35:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOlsf-0008I8-Ke for pgsql-hackers@postgresql.org; Tue, 23 Mar 2021 18:35:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 12NIZk94985942; Tue, 23 Mar 2021 14:35:46 -0400 From: Tom Lane To: Jan Wieck cc: Bruce Momjian , Zhihong Yu , Andrew Dunstan , Magnus Hagander , Robins Tharakan , Peter Eisentraut , "pgsql-hackers@postgresql.org" Subject: Re: pg_upgrade failing for 200+ million Large Objects In-reply-to: <91b02dc1-f0d9-e50d-849c-18d9a66484fb@wi3ck.info> References: <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> <8d8d3961-8e8b-3dbe-f911-6f418c5fb1d3@wi3ck.info> <20210323180646.GG579@momjian.us> <91b02dc1-f0d9-e50d-849c-18d9a66484fb@wi3ck.info> Comments: In-reply-to Jan Wieck message dated "Tue, 23 Mar 2021 14:23:03 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <985940.1616524546.1@sss.pgh.pa.us> Date: Tue, 23 Mar 2021 14:35:46 -0400 Message-ID: <985941.1616524546@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jan Wieck writes: > So the question remains, how do we name this? > --pg-dump-options "" > --pg-restore-options "" If you're passing multiple options, that is --pg-dump-options "--foo=x --bar=y" it seems just horribly fragile. Lose the double quotes and suddenly --bar is a separate option to pg_upgrade itself, not part of the argument for the previous option. That's pretty easy to do when passing things through shell scripts, too. So it'd likely be safer to write --pg-dump-option=--foo=x --pg-dump-option=--bar=y which requires pg_upgrade to allow aggregating multiple options, but you'd probably want it to act that way anyway. regards, tom lane