Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VFTW3-0004el-An for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Aug 2013 18:33:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VFTW2-0003uu-RF for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Aug 2013 18:33:50 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VFTW1-0003un-IY for pgsql-bugs@postgresql.org; Fri, 30 Aug 2013 18:33:49 +0000 Received: from nm19-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.162]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VFTVu-0006ar-4e for pgsql-bugs@postgresql.org; Fri, 30 Aug 2013 18:33:48 +0000 Received: from [66.196.81.172] by nm19.bullet.mail.bf1.yahoo.com with NNFMP; 30 Aug 2013 18:33:41 -0000 Received: from [98.139.212.227] by tm18.bullet.mail.bf1.yahoo.com with NNFMP; 30 Aug 2013 18:33:41 -0000 Received: from [127.0.0.1] by omp1036.mail.bf1.yahoo.com with NNFMP; 30 Aug 2013 18:33:41 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 142052.73651.bm@omp1036.mail.bf1.yahoo.com Received: (qmail 83306 invoked by uid 60001); 30 Aug 2013 18:33:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1377887621; bh=4sKtYW+tALi32AHxWGrKs9819tFV2pfBjSrfln7uFzk=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=tw/FQ0j1oDEXyhWW9uJ8+4YvZhK2gIeD3lYAfmXo7yfBNfaRLBqrNbZtqSTyKK2DzPlJ8QDxHhtUIf+riGUoWC2slRPlN+AeOqVfrSSozUapAqZpNX9MEV18SpAvun1a9JAzqTOQsHWeXo4YpDqdAjo/XOCyuMzJFfNF6bkdrmc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=PVl5X16LwiMxDfZuXpjNXDaPpb4cXkdoaQ0rmqkSVhjGMoEUlZaQB0XBAQ9dqWPNNQsrTANSxT10746ZjOA8PWpbJUQTaOuzBvYllzodTZ8KZU+TbQATu/T0n7xN1/cvRTwUIzXbogwWOi8JDZryYnTvBf6ijP4LTs7+5xPUXc8=; X-YMail-OSG: mMXMVT0VM1leTBBsmjHsBtZAIgVTWHNlYYQC06vPf2tUGUb XjMptErS2pKV1q5BT6y1BeE7gd0zyRDpkuVESsOTFZKlfH_UqgyBx7WCf.qG mtXw2FG3y39SXptEvjV8yKY6EB3.9GkIu5Ccz9TrQQN_D39nHufbxWC2GJQP 7unGypduJJo7.nUwqKt.Q3s2bynH6oo_RJxE0u1g64Vep5taSo7LP_iJWYFB wZ9kDCHOKnRKqrcryuaa_Z7apXcgsml4jK56nxCcZWiIqCBL81Z2KXHDA9n. W9ysQdL39CKFQzDyX2wYDWwvcVeH561XjQ1ubrRvWbd4LKDlTeMTHI2_KdXD ZVfSBpStaQ4fnPWRdh21VJ6oGmrD6pWWOMz3u9hd_HiK3hK69LiJl3R7PETJ Oo4T768U4dkoFAXGA5AWtgEW8NuEEytZVfn6L2_ReGUNsnI6HLnpzXN6i8bT SjfK8EE0JnDGfcJe45Vra7zWsUBSe6wUkFhffZf.M8JLDSZT5ECP19_tnNxF zPFjMkWhZ5mCnBqew7hUuiVwppa_gj2k1PPynhWVIyIuvoz8c7MPUOeW76.5 oamkhKP8hJSNwxPw6Nji3bmkf9Qmq_bqRaVVCIiTnPDb2n52iEXzy1nepGsw lsQ-- Received: from [76.255.18.237] by web162905.mail.bf1.yahoo.com via HTTP; Fri, 30 Aug 2013 11:33:40 PDT X-Rocket-MIMEInfo: 002.001, ImFqYXlha3NhZHZhbmNlQGdtYWlsLmNvbSIgPGFqYXlha3NhZHZhbmNlQGdtYWlsLmNvbT4gd3JvdGU6Cgo.IFBvc3RncmVTUUwgdmVyc2lvbjogOS4yLjAKClRoZXJlIGhhdmUgYmVlbiBtYW55IGZpeGVzIGZvciBidWdzIGFuZCBzZWN1cml0eSB2dWxuZXJhYmlsaXRpZXMgaW4KdGhlIDkuMiBtaW5vciByZWxlYXNlcyBzaW5jZSA5LjIuMC4KCmh0dHA6Ly93d3cucG9zdGdyZXNxbC5vcmcvc3VwcG9ydC92ZXJzaW9uaW5nLwoKPiBJIGFtIG5vdCBzdXJlIGl0cyBhIGJ1ZyBvciBub3QgYnV0IG5lZWQgc29tZSABMAEBAQE- X-Mailer: YahooMailWebService/0.8.156.576 References: Message-ID: <1377887620.80788.YahooMailNeo@web162905.mail.bf1.yahoo.com> Date: Fri, 30 Aug 2013 11:33:40 -0700 (PDT) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: BUG #8400: DB size changed after restore To: "ajayaksadvance@gmail.com" , "pgsql-bugs@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: 1.7 (+) 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 "ajayaksadvance@gmail.com" wrote: > PostgreSQL version: 9.2.0 There have been many fixes for bugs and security vulnerabilities in the 9.2 minor releases since 9.2.0. http://www.postgresql.org/support/versioning/ > I am not sure its a bug or not but need some information on this. There's no real evidence of a bug, it would have been better to post a question to: pgsql-general@postgresql.org > I am doing upgrade from 8.4 to 9.2 hence DB dump and then > restore. Normally when upgrading with this technique you should use the pg_dump executable from the target version to dump the old database.=A0 The newer software understands previous storage formats, but the older software doesn't know anything about versions that were written later. > On postgrse 8.4 , i have DB of size 32 GB. > SELECT pg_size_pretty(pg_database_size('')) >=A0=A0 As fulldbsize; > > I have done vacummdb before going for dump. That will make space available for re-use, but generally won't eliminate dead space or reduce file sizes. > 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? Well, you could narrow the possibilities by restoring that dump to an 8.4 database and see how big that is.=A0 Some major releases have improved the storage formats for some data types, like numeric; but you might just be dealing with dead space from deletes and updates. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs