Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bA13n-0006Io-F0 for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jun 2016 20:23:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bA13m-00055L-SY for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jun 2016 20:23:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bA13m-000555-BR for pgsql-hackers@postgreSQL.org; Mon, 06 Jun 2016 20:23:42 +0000 Received: from zmcc-5-mx.zmailcloud.com ([192.198.93.228]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bA13j-00020B-Gt for pgsql-hackers@postgreSQL.org; Mon, 06 Jun 2016 20:23:41 +0000 Received: from zmcc-5-mta-1.zmailcloud.com (127.37.197.104.bc.googleusercontent.com [104.197.37.127]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zmcc-5-mx.zmailcloud.com (Postfix) with ESMTPS id EDB0952022D; Mon, 6 Jun 2016 16:23:36 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by zmcc-5-mta-1.zmailcloud.com (Postfix) with ESMTP id 9DF3DC207D; Mon, 6 Jun 2016 20:23:36 +0000 (UTC) Received: from zmcc-5-mta-1.zmailcloud.com ([127.0.0.1]) by localhost (zmcc-5-mta-1.zmailcloud.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id zCsY-Oxfw52v; Mon, 6 Jun 2016 20:23:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zmcc-5-mta-1.zmailcloud.com (Postfix) with ESMTP id 49B01C2042; Mon, 6 Jun 2016 20:23:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at zmcc-5-mta-1.zmailcloud.com Received: from zmcc-5-mta-1.zmailcloud.com ([127.0.0.1]) by localhost (zmcc-5-mta-1.zmailcloud.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id T93A_B7HCNyX; Mon, 6 Jun 2016 20:23:36 +0000 (UTC) Received: from redhat.com (unknown [172.56.28.25]) by zmcc-5-mta-1.zmailcloud.com (Postfix) with ESMTPSA id 3EBB0C2087; Mon, 6 Jun 2016 20:23:35 +0000 (UTC) Subject: Re: [BUGS] Routine analyze of single column prevents standard autoanalyze from running at all To: Tom Lane , Tomasz Ostrowski References: <28700.1465238280@sss.pgh.pa.us> Cc: pgsql-hackers@postgreSQL.org From: Josh berkus Message-ID: <5755DBC2.9040007@agliodbs.com> Date: Mon, 6 Jun 2016 15:23:30 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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 On 06/06/2016 01:38 PM, Tom Lane wrote: > Also, I'd be a bit inclined to disable the counter reset whenever a column > list is specified, disregarding the corner case where a list is given but > it includes all the table's analyzable columns. It doesn't really seem > worth the effort to account for that case specially (especially after > you consider that index expressions should count as analyzable columns). > > Thoughts? +1. Better to err on the side of duplicate analyzes than none at all. Also, I'm not surprised this took so long to discover; I doubt most users are aware that you *can* analyze individual columns. -- -- Josh Berkus Red Hat OSAS (any opinions are my own) -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers