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 1hoGDo-00042Y-TA for pgsql-general@arkaria.postgresql.org; Thu, 18 Jul 2019 23:54:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hoGDn-0002Sp-4H for pgsql-general@arkaria.postgresql.org; Thu, 18 Jul 2019 23:53:59 +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 1hoGDm-0002Se-OB for pgsql-general@lists.postgresql.org; Thu, 18 Jul 2019 23:53:58 +0000 Received: from mail-io1-xd43.google.com ([2607:f8b0:4864:20::d43]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hoGDk-0003ma-IF for pgsql-general@lists.postgresql.org; Thu, 18 Jul 2019 23:53:58 +0000 Received: by mail-io1-xd43.google.com with SMTP id j6so22424631ioa.5 for ; Thu, 18 Jul 2019 16:53:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=1XHxwoc3mgbZSwYkQvATpYbs0yUN0VYXprrk6rzOyt0=; b=czpZwIHl/wBDA95PIjXfYuzuJCfNLCkBeGkiMEaOHrbS45hC6pIoBli9O5i3aIb0J7 J3zeGyCLH4531gTE24oFg/qfffxj8ySVWbIsCVJV1inyvl+FYBvg1Pcgbg3x8nfOuDyH oZO1yrnGnuTa9WuX/q+WMeJ7TuT993BF109/sUwh95DaOctPaXJ/9NsaaJFOrcQha/zk Ca7FtpCrxTvPQmhnDios/MZSf5yXT+LNK1XHaK29txqqrGEdCOxnW/D8T2lKXvU0GjKX Z4GFyCuxaMHsOf22A2RBqwtLE/yhsVEbcXH4B0NPwyvvGqq1eKGXXeoFffOrz67k+3oW VODg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=1XHxwoc3mgbZSwYkQvATpYbs0yUN0VYXprrk6rzOyt0=; b=hUSW1qpqv2cNTcSKZFOzS1BOW+uhRocEoeq+sfpoTrawUGwGQ7tB27Vv8zK055tqMd MVYGZntrhBhvRQ/Ynd5EOXf9szjiXynxT+AZKyF/uULaNC0tE/709WU0jW2DF7AydLvX BkdQ7C37kI6Pphi/GxiFeUep1QyDwIDRttjxKjhxP16ln85PlCBa3uN/AJ3FTJgW5j+1 72tXmHnqiAZu64XwBG9+gGtzpiJ5N5umTqy1e9Jnp2lJg7+PeY9ga3A3Y332eOogiwie nptWk+kCp2dq4kIKpbQpD+XtisLuT1vO7Z6aL5j2WidbMsuGwsqHPvWy3lEyDrXkBtqN 8oyA== X-Gm-Message-State: APjAAAVD9PAFFJO8aLAf//WjUZFjedUq6Wr13BhsxzAkdnULqubQHBis NmiVr0ds0hmkH2ZJD7JUKpQ= X-Google-Smtp-Source: APXvYqz3oEBcFvRhkAgg/Mvz4tkD9y55r2O+MM8Rxl/NPPRcNZQplEoXE6msOlf2srfL5TBpADxENg== X-Received: by 2002:a5e:a710:: with SMTP id b16mr49554793iod.38.1563494033592; Thu, 18 Jul 2019 16:53:53 -0700 (PDT) Received: from [192.168.1.108] (c-73-63-59-118.hsd1.ut.comcast.net. [73.63.59.118]) by smtp.gmail.com with ESMTPSA id p3sm32492103iom.7.2019.07.18.16.53.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jul 2019 16:53:52 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Rearchitecting for storage From: Rob Sargent In-Reply-To: Date: Thu, 18 Jul 2019 17:53:51 -0600 Cc: Kenneth Marshall , pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20190718173424.GB25488@aart.rice.edu> To: Matthew Pounsett X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >=20 > That would likely keep the extra storage requirements small, but still = non-zero. Presumably the upgrade would be unnecessary if it could be = done without rewriting files. Is there any rule of thumb for making = sure one has enough space available for the upgrade? I suppose that = would come down to what exactly needs to get rewritten, in what order, = etc., but the pg_upgrade docs don't seem to have that detail. For = example, since we've got an ~18TB table (including its indices), if that = needs to be rewritten then we're still looking at requiring significant = extra storage. Recent experience suggests postgres won't necessarily do = things in the most storage-efficient way.. we just had a reindex on that = database fail (in --single-user) because 17TB was insufficient free = storage for the db to grow into. >=20 Can you afford to drop and re-create those 6 indices?=