Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YKfKi-0003TS-Cd for pgsql-admin@arkaria.postgresql.org; Mon, 09 Feb 2015 03:48:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YKfKg-0007Fv-5J for pgsql-admin@arkaria.postgresql.org; Mon, 09 Feb 2015 03:48:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YItxt-0002OZ-1M for pgsql-admin@postgresql.org; Wed, 04 Feb 2015 07:01:33 +0000 Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YItxp-0005xb-Iy for pgsql-admin@postgresql.org; Wed, 04 Feb 2015 07:01:31 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YItxk-0001Pa-2Y for pgsql-admin@postgresql.org; Wed, 04 Feb 2015 08:01:24 +0100 Received: from 91.207.148.254 ([91.207.148.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Feb 2015 08:01:24 +0100 Received: from forall by 91.207.148.254 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Feb 2015 08:01:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: "For@ll" Subject: Lost statistics after restore database Date: Wed, 04 Feb 2015 08:01:15 +0100 Lines: 12 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 91.207.148.254 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 X-Pg-Spam-Score: 0.6 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi, I have weird problem with database postgresql 9.3.5. I tried to use pg_upgrade to migrate dabase from postgresql 9.2 to 9.3 it ended in 2 minutes - orginal database has 45GB and after pg_upgrade has 200MB. So I used pg_dump (9.3.5) with binary format (Fc) and then restore with pg_restore 9.3.5. Database did restore but thereis problem with statistics. I have the same database on the other server and when I look for statistics I have 75 rows and on my broken db I should have the same, but I have only 20 rows and there are queries that lasts and lasts. If I give explain analyze for them it last for 45 minutes and more... -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin