Re: [BUGS] Routine analyze of single column prevents standard autoanalyze from running at all

From: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
To: Josh berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Tomasz Ostrowski <tometzky+pg(at)ato(dot)waw(dot)pl>
Cc: <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [BUGS] Routine analyze of single column prevents standard autoanalyze from running at all
Date: 2016-06-08 00:25:13
Message-ID: 3d9303dc-f99c-b63c-73be-aa2214bebe73@BlueTreble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Tripp 2016-06-08 01:33:34 Re: BUG #14150: Attempted to delete invisible tuple
Previous Message Bo Ørsted Andresen 2016-06-08 00:24:38 Re: BUG #14180: Segmentation fault on replication slave

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2016-06-08 00:38:05 Typo in pg_visibility
Previous Message Michael Paquier 2016-06-07 23:48:58 Re: installcheck failing on psql_crosstab