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.92) (envelope-from ) id 1jCoEq-0005lb-IV for pgsql-general@arkaria.postgresql.org; Fri, 13 Mar 2020 17:36:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCoEo-0001QM-CG for pgsql-general@arkaria.postgresql.org; Fri, 13 Mar 2020 17:36:46 +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 1jCoEo-0001L9-00 for pgsql-general@lists.postgresql.org; Fri, 13 Mar 2020 17:36:46 +0000 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jCoEl-0003gI-56 for pgsql-general@lists.postgresql.org; Fri, 13 Mar 2020 17:36:45 +0000 Received: by mail-ot1-x331.google.com with SMTP id j14so10977215otq.3 for ; Fri, 13 Mar 2020 10:36:42 -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-language; bh=YJm0me7zSCydyPhkhP5VziBWCGB9EPOmU89ataSi6Uk=; b=eyhJxPg0huri/0n8dXjtUdLEmBdHIXYhtOcw70BR8aTu8TeVaDjoTbJ1wOxnxUWWHU cI6nj+6o28L82RSs1w9O5ZP84aXlv7eAld1yuPi4DMwbEwZrwrUgSET511JS9ukoapFA vFZ5xtdldRsChOxUQq1+Ub+pxcdvcL3c9bMoMEMIEikSvh5i3oTZF5ebK7JPfwXlbuk8 zYAux3ff6bTOzHPO4UxT/Hbe0z+oqU9+mJ8PRBJpNgdjIxY6U6sgncaZThMcWLDNY7Bh J1el2K85IGYVTeTn6LgYBZ+EssFRwt7aaOWU18RenHsVfUdxfugEGTWeyJrq0AakbuyW rrMQ== 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-language; bh=YJm0me7zSCydyPhkhP5VziBWCGB9EPOmU89ataSi6Uk=; b=MYHsOoe8vYsGtL8MXT5vKpZ76sVypcvWCi4n5lAZUyplRX/6c6UJ1Mn3q9TYiKYA1D 6bnT2eO0OuSsUI83IPVyx+ePgwNz/rLBuC7RC4iJWnryMFxnC8sW4PuB2Fki0JgNyjK1 jRuLhbRcwjjG+FJdx26GWjgWdWQNkGbNR/wBT2KSAuchTKIwxXfyTQk4Xr5bLHdKeMCP 1bCZ3SQhDc8CLNEn/I+cIuz6669deMFluQhpIBhbH+CEhbK92RM4SrugLplaLYmrimYY 76YAvgfCepLb/7dzJnqa5b5emzPDzA4OFJkEpf+q0PICBmWWQ9xpV3i2c/tYDkGYS8cP Yumw== X-Gm-Message-State: ANhLgQ2X1spviT8pBKqRQA74XsnBajgtr3HCauZmY3XXfdZ7YNDbZbie djo2owXbzJHhv8LunrbPJAabRu4iBPM= X-Google-Smtp-Source: ADFU+vv3iSNpoyqTxfIOGsWxPp0LrSwX5VSG+VgP/ksSyGGnpggKNwY9aCr9ZBN+hn7tMQLLKrEqpQ== X-Received: by 2002:a9d:3df6:: with SMTP id l109mr11931368otc.284.1584121000736; Fri, 13 Mar 2020 10:36:40 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id 95sm2558594oto.52.2020.03.13.10.36.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Mar 2020 10:36:40 -0700 (PDT) Subject: Re: vacuum full doubled database size To: pgsql-general@lists.postgresql.org References: <87ee68cc208c4775bd422277291fbcaf@zuerich.ch> From: Ron Message-ID: <7c0a3bab-859e-5be4-f0bd-0e06d72f40de@gmail.com> Date: Fri, 13 Mar 2020 12:36:39 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------1120CF13749D470A6AD12D4E" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------1120CF13749D470A6AD12D4E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 3/13/20 10:32 AM, Fabio Ugo Venchiarutti wrote: > On 13/03/2020 15:15, Ron wrote: >> This is why I'd VACUUM FULL in a planned manner, one or two tables at a >> time, and *locally* from crontab. > > That's not really viable on any remotely busy system: VACUUM FULL claims > exclusive table locks, causing queries to hang > (https://www.postgresql.org/docs/current/sql-vacuum.html#NOTES mentions > this too). This is of course *if* I were to ever do a VACUUM FULL... :) The point is that your mother's rule about not sticking a giant fork-full of food into your mouth is also an excellent rule in IT. -- Angular momentum makes the world go 'round. --------------1120CF13749D470A6AD12D4E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit On 3/13/20 10:32 AM, Fabio Ugo Venchiarutti wrote:
On 13/03/2020 15:15, Ron wrote:
This is why I'd VACUUM FULL in a planned manner, one or two tables at a time, and *locally* from crontab.

That's not really viable on any remotely busy system: VACUUM FULL claims exclusive table locks, causing queries to hang (https://www.postgresql.org/docs/current/sql-vacuum.html#NOTES mentions this too).

This is of course if I were to ever do a VACUUM FULL... :)

The point is that your mother's rule about not sticking a giant fork-full of food into your mouth is also an excellent rule in IT.

--
Angular momentum makes the world go 'round.
--------------1120CF13749D470A6AD12D4E--