Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKr2Y-00086w-Bc for pgsql-general@arkaria.postgresql.org; Sun, 28 Apr 2019 21:08:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hKr2W-0000oN-U9 for pgsql-general@arkaria.postgresql.org; Sun, 28 Apr 2019 21:08:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKr2W-0000oG-I0 for pgsql-general@lists.postgresql.org; Sun, 28 Apr 2019 21:08:48 +0000 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKr2U-0002Jp-AS for pgsql-general@lists.postgresql.org; Sun, 28 Apr 2019 21:08:48 +0000 Received: by mail-ot1-x344.google.com with SMTP id t20so6977859otl.5 for ; Sun, 28 Apr 2019 14:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=SGHY2B1CvYlCSKXXV6tkSnS4lAhyCiloOJFfZ/NvkMw=; b=Ttp0BCZ8eNjM36m7bYQ4LEzONVQLcWwP0axvi180YWuxFsMdOq3lgoBp5Um71cXqSk Pal+AjDoyweUSPkFDNnejksWWhNw9iHSkBMT9xFMGCSEQpJ0sCC7vOc2AvEkHQGo9zbQ 1wgGSArmqXT8j2thnW9oAtLHGMwexSWArKlUGqcBJb+22XM0mzsqfonF9wug5orBb+sb p05G5abHmTszyR2P8CxO5UPfW5wJRGH8e7z50Kj50HLzpExqzqZMt+wYxp7fVIpCj5Lf a6l9fZMoGVBcHwkJTXpP9RR0cghJ0EC5HNWOFRjCDYMCsblxIu7e4g0t/v0OYp3NX2Dz hS7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=SGHY2B1CvYlCSKXXV6tkSnS4lAhyCiloOJFfZ/NvkMw=; b=nAdLZnljaH9jmFHq3+WOwgczslrSbSEiJEs9YpxJ3zIvAuwLQckc0DrXjy/g2JbgfW co5JR6G7Ln3khM5+rEjcjPX8cunHmNHP4sEL80M1aJbSsHOG81dm0Lz/O4y7ijRdsALM IdHZo1owPyWjVkd7JHVrLAHHkNXCIGmhu39u+1UzK4rW8vrZG/+93a5XTKmnChD8+k1u HDnFNsgKTgfN7TXR5t8CrcHdfaJ5/6O9s7/ypiVpv4e5gSWwHM4g2y+DUI/3QtOTIzGL pIjrowVuDsED7AySRO9jmz1M/aDO+ENywre7ywH0vubZ2j3gbH3VdAsV5JGe40T7Nhwy Zbcw== X-Gm-Message-State: APjAAAVWqz//2khujy2OGKpnTs77PwwrgK7QJt/f/NkhOMh1DDQmHXn4 QWcg01dXQy6MCMkJtN6BibkVjdtKMYY= X-Google-Smtp-Source: APXvYqzAXh7S4qm5VcRGD87O07bE98By4p9MXCPVletd9fbmIga0WJd9T3lReb1+TGWNJmzLhAQLNQ== X-Received: by 2002:a9d:6f0e:: with SMTP id n14mr35956372otq.94.1556485723213; Sun, 28 Apr 2019 14:08:43 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id d4sm3702315otq.0.2019.04.28.14.08.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Apr 2019 14:08:42 -0700 (PDT) Subject: Re: Optimize pg_dump schema-only To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <17505fec-be0a-526a-9ee5-18bb0408a62a@gmail.com> Date: Sun, 28 Apr 2019 16:08:41 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/28/19 3:21 PM, senor wrote: > Hi All, > > I'm looking for advice for optimizing the pg_dump portion of "pg_upgrade > --link". Since this schema only dump can't take advantage of parallel > processing with jobs I'm looking for any preparation or configuration > settings that can improve speed. > > 9.2 to 9.6 > CentOS 6/64bit > 512GB > > I see only one CPU of 32 doing anything and it's often at 100%. Disk IO > is minimal. Memory use varies but always plenty to spare. "pg_dump --schema-only" is single-threaded. -- Angular momentum makes the world go 'round.