Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bATn1-0005DP-F2 for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jun 2016 03:04:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bATn1-00079V-1s for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jun 2016 03:04:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bATmz-000789-D7 for pgsql-hackers@postgresql.org; Wed, 08 Jun 2016 03:04:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bATmx-0005Q2-6T for pgsql-hackers@postgresql.org; Wed, 08 Jun 2016 03:04:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u58345hN026772; Tue, 7 Jun 2016 23:04:05 -0400 From: Tom Lane To: Jim Nasby cc: Josh berkus , Tomasz Ostrowski , pgsql-hackers@postgresql.org Subject: Re: [BUGS] Routine analyze of single column prevents standard autoanalyze from running at all In-reply-to: <3d9303dc-f99c-b63c-73be-aa2214bebe73@BlueTreble.com> References: <28700.1465238280@sss.pgh.pa.us> <5755DBC2.9040007@agliodbs.com> <3d9303dc-f99c-b63c-73be-aa2214bebe73@BlueTreble.com> Comments: In-reply-to Jim Nasby message dated "Tue, 07 Jun 2016 19:25:13 -0500" Date: Tue, 07 Jun 2016 23:04:05 -0400 Message-ID: <26771.1465355045@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 Jim Nasby writes: > Is there any significant advantage to not analyzing all columns? Only > case I can think of is if you have a fair number of columns that have > been toasted; otherwise I'd think IO would completely swamp any other > considerations. Yeah, my guess is that the OP's example where analyzing just one column was significantly cheaper boiled down to some of the other columns being mostly toasted data. Otherwise it's hard to see how there's much more expense in analyzing them all. 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