Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tizpo-0005ls-S6 for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Dec 2012 03:51:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tizpn-0007IF-JY for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Dec 2012 03:51:43 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tizpm-0007IA-IZ for pgsql-hackers@postgresql.org; Thu, 13 Dec 2012 03:51:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tizpl-0000PS-4P for pgsql-hackers@postgresql.org; Thu, 13 Dec 2012 03:51:41 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qBD3pcqZ023299; Wed, 12 Dec 2012 22:51:38 -0500 (EST) From: Tom Lane To: Bruce Momjian cc: Andrew Dunstan , PostgreSQL-development Subject: Re: [PERFORM] encouraging index-only scans In-reply-to: <20121213024837.GB22363@momjian.us> References: <50C8F1EC.9010801@dunslane.net> <15321.1355347953@sss.pgh.pa.us> <50C90154.8060103@dunslane.net> <50C904DB.9090305@dunslane.net> <20121213024837.GB22363@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Wed, 12 Dec 2012 21:48:37 -0500" Date: Wed, 12 Dec 2012 22:51:38 -0500 Message-ID: <23298.1355370698@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Bruce Momjian writes: > On Wed, Dec 12, 2012 at 05:27:39PM -0500, Andrew Dunstan wrote: >> Actually, the table had been analysed but not vacuumed, so this >> kinda begs the question what will happen to this value on >> pg_upgrade? Will people's queries suddenly get slower until >> autovacuum kicks in on the table? > [ moved to hackers list.] > Yes, this does seem like a problem for upgrades from 9.2 to 9.3? We can > have pg_dump --binary-upgrade set these, or have ANALYZE set it. I > would prefer the later. ANALYZE does not set that value, and is not going to start doing so, because it doesn't scan enough of the table to derive a trustworthy value. It's been clear for some time that pg_upgrade ought to do something about transferring the "statistics" columns in pg_class to the new cluster. This is just another example of why. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers