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 1lOmAp-0002yl-VU for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Mar 2021 18:54:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lOmAo-0002x7-UO for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Mar 2021 18:54:38 +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 1lOmAo-0002x0-Iy for pgsql-hackers@lists.postgresql.org; Tue, 23 Mar 2021 18:54:38 +0000 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lOmAi-0005Vs-DO for pgsql-hackers@postgresql.org; Tue, 23 Mar 2021 18:54:37 +0000 Received: by mail-qv1-xf2c.google.com with SMTP id by2so10995824qvb.11 for ; Tue, 23 Mar 2021 11:54:32 -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=OmnjE4ooooEKTKMMGeujs2TWNS1CCPEREZUcs+51gJ4=; b=OWNVvk7NRWK4nE+C2YFLUgRcRWviz0DzWZOEDiCr+m0qAh8bwsBGKCSKhbFc+v5I0B QC5xg1w7LRM7dVnAYUD901j/yF8DJIZ6UaLQxN/tDpRHSEQAGpVYfh/J2Js3duLGk0AX UtpV+nQp9I0VkqdaNXkly6wn+VPhAxCmYycUf6lUFE8wvjm1UD4uSQzgthAY8EVNRzEq oUZ8WXagZR600WlE6jgo2bw/WpAD3l7BDzhkj/jzHSFY4AJaoCv3u+1llfrinzrXXpPT 66ViNO8J/F1ySd8NCKQ7LfHHMqTXwWI5UkmdAwMdiz8hzDiG0XZrU9eKMw2ruKSoRb3M C6Iw== 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=OmnjE4ooooEKTKMMGeujs2TWNS1CCPEREZUcs+51gJ4=; b=B4t2zY5lzNmIIfyxwNvfPvK3WGzIikjagqdTK3qBOGs1KqU35shYAHhy7grqn2HR1V bDvnw80UIScjN9vK0Dx3YThmAaExzhUXccOXfqstcNuo7V9zdZs7tJqbO+jmqFy+gUyS Q0sPjQ0wGS/SPfu6R4w8qTxrSAs07xGVRbQjJMhZ8/kHgIUS/nQKeNJtsI1D4/Bat+Dn 0gii/ztaM9L4pSwwNUL0jJeNtnWnLHDzPteMmG3ZZLTq2cdFzPXHWTG1ed/TVpLAcaqx 3hERlbpFJCeMfSXKumfTTHMcQqsPPP5igGWAJ7PVkHr4JHKpTug6E/ZYvhlbQgH3l3og JmcA== X-Gm-Message-State: AOAM5306wyXs/GznSR7c2pyyn9p725yriMqPXxvjz96sQfsIUiMdccNC htfJsyaxcU+qNpUZiLY9hZQSMhGRQNT6SkbV X-Google-Smtp-Source: ABdhPJzmREUuDBjWo0ACryfI5VYpJM5zfGCIGLX1kaw1zo5jYDCsRhJkmVTFgN2r1WVMJ2UFqojxng== X-Received: by 2002:a05:6214:a62:: with SMTP id ef2mr6174759qvb.44.1616525670831; Tue, 23 Mar 2021 11:54:30 -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 f9sm13770886qkk.115.2021.03.23.11.54.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Mar 2021 11:54:30 -0700 (PDT) Subject: Re: pg_upgrade failing for 200+ million Large Objects To: Tom Lane Cc: Bruce Momjian , Zhihong Yu , Andrew Dunstan , Magnus Hagander , Robins Tharakan , Peter Eisentraut , "pgsql-hackers@postgresql.org" 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> <985941.1616524546@sss.pgh.pa.us> From: Jan Wieck Message-ID: Date: Tue, 23 Mar 2021 14:54:29 -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: <985941.1616524546@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/23/21 2:35 PM, Tom Lane wrote: > 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. ... which would be all really easy if pg_upgrade wouldn't be assembling a shell script string to pass into parallel_exec_prog() by itself. But I will see what I can do ... Regards, Jan -- Jan Wieck Principle Database Engineer Amazon Web Services