Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEKsu-0003kG-BV for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Aug 2013 15:08:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VEKst-0000o5-Qz for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Aug 2013 15:08:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEEgd-0000I5-Ab for pgsql-bugs@postgresql.org; Tue, 27 Aug 2013 08:31:39 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEEga-00062W-W1 for pgsql-bugs@postgresql.org; Tue, 27 Aug 2013 08:31:39 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEEgZ-0005Mu-Q6 for pgsql-bugs@postgresql.org; Tue, 27 Aug 2013 08:31:36 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1VEEgU-0007nl-Gg for pgsql-bugs@postgresql.org; Tue, 27 Aug 2013 08:31:30 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8400: DB size changed after restore To: pgsql-bugs@postgresql.org From: ajayaksadvance@gmail.com Message-Id: Date: Tue, 27 Aug 2013 08:31:30 +0000 X-Pg-Spam-Score: -3.5 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8400 Logged by: Ajay Email address: ajayaksadvance@gmail.com PostgreSQL version: 9.2.0 Operating system: ubuntu Description: Hi, I am not sure its a bug or not but need some information on this. I am doing upgrade from 8.4 to 9.2 hence DB dump and then restore. On postgrse 8.4 , i have DB of size 32 GB. SELECT pg_size_pretty(pg_database_size('')) As fulldbsize; I have done vacummdb before going for dump. I have first done schema dump and then DB data and all is fine. But on restore its running successfully but i am getting only size 9213 MB. Dont know, what exactly happend? I have checked rows count, random data its seems fine but why there is difference? How to make sure restore is done properly? But ifi do below on 8.4 and 9.2 then i am getting different size and obviously small on 9.2 . SELECT pg_size_pretty(pg_total_relation_size('package')) As fulldbsize; Please suggest. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs