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 1hqKHN-0000OT-8O for pgsql-general@arkaria.postgresql.org; Wed, 24 Jul 2019 16:38:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hqKHL-0003iK-HX for pgsql-general@arkaria.postgresql.org; Wed, 24 Jul 2019 16:38:11 +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 1hqKHK-0003hK-Cd for pgsql-general@lists.postgresql.org; Wed, 24 Jul 2019 16:38:11 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hqKHD-0001EY-FV for pgsql-general@postgresql.org; Wed, 24 Jul 2019 16:38:09 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id A7C76213CA; Wed, 24 Jul 2019 12:38:02 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 24 Jul 2019 12:38:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imap.cc; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=l PQDkDvtt+Q8Hew7QEidmIW30QTANSEKirkKacd3nw0=; b=kLPMu3UrfoMxldi1n YlRWkcOCDAYAzOxBe7yh2rjqKa7J1FR6515nzmix+lK2vxp9tdF3JaTkqLopUifH ivy2IGjOclTkQ8Zt1gCAXTLSc6GEkEm8dVQu1/Kr00gU0wQFCkYXANWcgZnOj2i/ ABNFgXm+zPvtKwVR6ViWqSUUnBkJyQGmRaCcpkOI2cnHTR5ZQe+niZ8ft6jbVmLO Zjm5/NJwhNex1T/W0BbGuvMDmIzGOeFLj7cQ7NH9weCgyn9H8XndCdSAdIhOsrJR 9IB21pHJhXUUlm2m/4XeybVYVhf89c1XVe52VaBpbwaFklLSYHPkiISDBeUNzs71 0pHqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=lPQDkDvtt+Q8Hew7QEidmIW30QTANSEKirkKacd3n w0=; b=EsM7WSDxWuCSVLy0vwdcZv4dt37iRRoFfGQZa7FcvbHfmqAyXr5URmW75 1EZMayTgTPVW+X/oedwq66vwYn0KeVnKjzTC4e+JDhSiiC9HJ66JdVw1i/tySFZg 3DL2FPB/GviY4mizkYjfkQ8G5Zikp+E9ZJJqATTj27ht85luxIU6c7mDPrFZVjON ItIoj6ENjUaafFOqYnbZChDSrnNg4cquEGmflIyD6uZq7AoKktqiLo/5J3GqebQ/ 3oYk1u2uF7ztilvANb3RHeOgTyYnqjY33FGr3xaweKhXE6LhnpiUN+UE284XcWin ELBSU14zWvVSnbDSr1jcb2yPyPrTw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrkedtgdelkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdeftddmnecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdef jeenucfhrhhomheptehlvgigvgihuceurghshhhtrghnohhvuceosggrshhhthgrnhhovh esihhmrghprdgttgeqnecukfhppedukeehrddvhedrfeefrdejtdenucfrrghrrghmpehm rghilhhfrhhomhepsggrshhhthgrnhhovhesihhmrghprdgttgenucevlhhushhtvghruf hiiigvpedt X-ME-Proxy: Received: from ev9d9.btn1.brandwatch.net (unknown [185.25.33.70]) by mail.messagingengine.com (Postfix) with ESMTPA id 20F96380075; Wed, 24 Jul 2019 12:38:02 -0400 (EDT) Subject: Re: after restore the size of the database is increased To: Luca Ferrari , pgsql-general References: From: Alexey Bashtanov Message-ID: <97067566-24a0-0e68-8ecc-7067b8db57a5@imap.cc> Date: Wed, 24 Jul 2019 17:38:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > Hi all, > this should be trivial, but if I dump and restore the very same > database the restored one is bigger than the original one. > I did vacuumed the database foo, then dumped and restored into bar, > and the latter, even when vacuumed, remains bigger then the original > one. > No other activity was running on the cluster. > I can also think of toast data rearranged differently after dump-restore, accidentally in such a way that it's packed into pages more efficiently. Not that the probability of such a behavior is very high though. Best regards,   Alexey