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 1jCm1u-0006rA-KR for pgsql-general@arkaria.postgresql.org; Fri, 13 Mar 2020 15:15:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCm1t-0006PJ-4c for pgsql-general@arkaria.postgresql.org; Fri, 13 Mar 2020 15:15:17 +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 1jCm1s-0006OH-NN for pgsql-general@lists.postgresql.org; Fri, 13 Mar 2020 15:15:16 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jCm1p-0002Vn-Q8 for pgsql-general@lists.postgresql.org; Fri, 13 Mar 2020 15:15:16 +0000 Received: by mail-ot1-x32f.google.com with SMTP id t28so7806588ott.5 for ; Fri, 13 Mar 2020 08:15:13 -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=PLT0NEX6MriiQVxxFZQySjTbrzx2lXn8/91ALp7gkz4=; b=kTMhV/mWs0cjjcTG9oW0umznr4gVNwB3XS2TV3nu9wPILxdOU3OQGsH8eKl+jWso3A I1s1xAqXf6g1FveOwyv9wDOaBvdloIkox231Ub0ug+6FrJ6zEZiXQqeLmlRa3SH+2FDY jAv7h3JxSYOTKtQ8TWHEB/Ea1ITE9u1LP/EEXrRLXE5uUbDBB10AlIIDdABOagRQgVtE Gudg/BhdCDFXaQBLh9WU0obpvcL6AbNbg2AY2yO7MRzGo0zmGWnsbYZdMY7WAOpo+Q7r M8HhjHOqcyLdkHHyM8IxwgvqXL0ayW+Z1NbwD1G875KEMFRN3zy+jI/d3a/CpRF3BMB9 96Gg== 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=PLT0NEX6MriiQVxxFZQySjTbrzx2lXn8/91ALp7gkz4=; b=n/A/4plCR7eX1gei/TnxveL0GGe14fGmnBnsU6gisY5fzA0UmXl42dTotXV1cMLH5I liAwO6MsSBYXbJLu+zpfLZXCIXgv90VPRbEYhASH1VUc5GfDM1+Hf8xUILOSf02LupJX I4pOalcD5m6ojp9tFQSQyngz17GzopHcNvNixcQbB2xdc+Yl01NmQT8Un0wv7yIPLnLG 9+voLqzy6lpuuzfcH+I3SxzZCnea6To9z59c+cBOVIJJBgboJddbd44AV+qnFTEYyuKQ VIAoCHE7PFkpUnoFkfPIsc0Idr8ByWX8mznlWlMmcjuG0l3nNIsM0Uh/7BwZls6CGH4Z ds9Q== X-Gm-Message-State: ANhLgQ2efed87ooQXGrTAD8wlJDAzONhyhM7w+kVfoV/T777lpblRjal /d+YDDGVbkeDIcDF7kVBW714+mVSgGc= X-Google-Smtp-Source: ADFU+vv8whYAd32zoLQOw1siuTF0rU9w7bg+HxJYpQ8KgQNfS8KiNPWf8QcTIHTOYpsRXIRIPO3tWw== X-Received: by 2002:a9d:82a:: with SMTP id 39mr3435813oty.82.1584112511337; Fri, 13 Mar 2020 08:15:11 -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 8sm7781816ois.15.2020.03.13.08.15.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Mar 2020 08:15:11 -0700 (PDT) Subject: Re: vacuum full doubled database size To: pgsql-general@lists.postgresql.org References: <87ee68cc208c4775bd422277291fbcaf@zuerich.ch> From: Ron Message-ID: Date: Fri, 13 Mar 2020 10:15:10 -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: <87ee68cc208c4775bd422277291fbcaf@zuerich.ch> Content-Type: multipart/alternative; boundary="------------CFEAAD71CA41B91B3EFE175D" 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. --------------CFEAAD71CA41B91B3EFE175D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit This is why I'd VACUUM FULL in a planned manner, one or two tables at a time, and *locally* from crontab. On 3/13/20 8:41 AM, Zwettler Markus (OIZ) wrote: > > We did a "vacuum full" on a database which had been interrupted by a > network outage. > > We found the database size doubled afterwards. > > Autovacuum also found a lot of orphaned tables afterwards. > > The ophan temp objects went away after a cluster restart while the db size > remained doubled. > > Any idea? > > Postgres 9.6.17 > -- Angular momentum makes the world go 'round. --------------CFEAAD71CA41B91B3EFE175D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit This is why I'd VACUUM FULL in a planned manner, one or two tables at a time, and locally from crontab.

On 3/13/20 8:41 AM, Zwettler Markus (OIZ) wrote:

We did a "vacuum full" on a database which had been interrupted by a network outage.

 

We found the database size doubled afterwards.

 

Autovacuum also found a lot of orphaned tables afterwards.

 

The ophan temp objects went away after a cluster restart while the db size remained doubled.

 

Any idea?

 

Postgres 9.6.17

 

 


--
Angular momentum makes the world go 'round.
--------------CFEAAD71CA41B91B3EFE175D--