pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: Josh berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Tomasz Ostrowski <tometzky+pg@ato.waw.pl>
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: [BUGS] Routine analyze of single column prevents standard autoanalyze from running at all
Date: Tue, 7 Jun 2016 19:25:13 -0500
Message-ID: <3d9303dc-f99c-b63c-73be-aa2214bebe73@BlueTreble.com> (raw)
In-Reply-To: <5755DBC2.9040007@agliodbs.com>
References: <ef99c1bd-ff60-5f32-2733-c7b504eb960c@ato.waw.pl>
	<28700.1465238280@sss.pgh.pa.us>
	<WM!3b713ccc015c0c47227d1456caf75c57fb15350b789ac43e940c60b7507990cad27fa6afdc0df2c3e2d3afaa80b692c8!@mailstronghold-2.zmailcloud.com>
	<5755DBC2.9040007@agliodbs.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 6/6/16 3:23 PM, Josh berkus wrote:
> 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.

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.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)   mobile: 512-569-9461


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (8+ messages)  latest in thread

Message-ID: <3d9303dc-f99c-b63c-73be-aa2214bebe73@BlueTreble.com>
Permalink:  ../3d9303dc-f99c-b63c-73be-aa2214bebe73@BlueTreble.com/
Also on:    postgresql.org/message-id/3d9303dc-f99c-b63c-73be-aa2214bebe73@BlueTreble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: Jim.Nasby@BlueTreble.com, josh@agliodbs.com, tgl@sss.pgh.pa.us, tometzky+pg@ato.waw.pl, 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: <ef99c1bd-ff60-5f32-2733-c7b504eb960c@ato.waw.pl> <28700.1465238280@sss.pgh.pa.us> <WM!3b713ccc015c0c47227d1456caf75c57fb15350b789ac43e940c60b7507990cad27fa6afdc0df2c3e2d3afaa80b692c8!@mailstronghold-2.zmailcloud.com> <5755DBC2.9040007@agliodbs.com> <3d9303dc-f99c-b63c-73be-aa2214bebe73@BlueTreble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox