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 1hBi1n-00050z-9Q for pgsql-general@arkaria.postgresql.org; Wed, 03 Apr 2019 15:42:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBi1l-0006Xr-HR for pgsql-general@arkaria.postgresql.org; Wed, 03 Apr 2019 15:42:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBi1k-0006Vd-Ve for pgsql-general@lists.postgresql.org; Wed, 03 Apr 2019 15:42:13 +0000 Received: from smtp48.i.mail.ru ([94.100.177.108]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBi1h-0004XZ-8t for pgsql-general@postgresql.org; Wed, 03 Apr 2019 15:42:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:References:Cc:To:Subject:From; bh=vr4c0GsVbSZTwPO3tl02MVtVEgxk/+iCvq8317m9Th0=; b=rAteRrmSDG3LBnBmXf8uem8W/f2B8m8EPO90OXDcD/+0nq7vPmU6v8A75ZfTf4kc/chFFXrdxFG8RFjWIN4wWFsyDA6NEGu/BtxJj5r/Q63PyXYdaVAZTBbXMuDLJ3MoaKFf8Q5us9SGgkXyQJKBFBPC/191nU2oGITaE53Xg9c=; Received: by smtp48.i.mail.ru with esmtpa (envelope-from ) id 1hBi1d-0001lk-Lf; Wed, 03 Apr 2019 18:42:06 +0300 From: rihad Subject: Re: Recommendation to run vacuum FULL in parallel To: hjp-pgsql@hjp.at Cc: pgsql-general General References: <9ed59ae2-6eb1-549d-eb05-d1546fd11515@mail.ru> Message-ID: Date: Wed, 3 Apr 2019 19:42:03 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Authentication-Results: smtp48.i.mail.ru; auth=pass smtp.auth=rihad@mail.ru smtp.mailfrom=rihad@mail.ru X-77F55803: 6115F4D8777AF1675A78504BD2AC2941AFE43FA5B394612486C282B33C7236732FA4512EC55E4815CE8D9A4A9A0AACEC X-7FA49CB5: 0D63561A33F958A5FF11019482088481F21840027A3F530E650BE43EC4BF80FB8941B15DA834481FA18204E546F3947C062BEEFFB5F8EA3EF6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8B8C7ADC89C2F0B2A5A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249668B94F0A65C3A0C3AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE7542AF255F21831B5CD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE77BECD07B3FF41582E1A739E84E76CD4075ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC8519DC0BE04022C72727F269C8F02392CD5571747095F342E88FB05168BE4CE3AF X-Mailru-Sender: B19AB4DAF1EA2FB5E46AF57E2DF2A7A1D9F0E6A573F2E23D4C3E30479C702B9E4C5C9A4FEB0B9F28ABBFE0CF075BC50BFB559BB5D741EB96004FA9CEFBA991DA3A5DB60FBEB33A8A0DA7A0AF5A3A8387 X-Mras: OK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > And future updates can reuse it, too (an update is very similar to an > insert+delete). Hm, then it's strange our DB takes 6 times as much space compared to freshly restored one (only public schema is considered). > Not if autovacuum has a chance to run between updates. Ours is run regularly, although we had to tweak it down not to interfere with normal database activity, so it takes several hours each run on the table. We did that by setting autovacuum_vacuum_scale_factor = 0.05 from default 0.2.