Re: Moving postgresql.conf tunables into 2003...
От
Manfred Koizar
Тема
Re: Moving postgresql.conf tunables into 2003...
Дата
Msg-id
4nfiiv850cu7vkp39tv7mk2b3pniim8ccu@4ax.com
Ответ на
Re: Moving postgresql.conf tunables into 2003... (Sean Chittenden)
Список
Дерево обсуждения
Moving postgresql.conf tunables into 2003... Sean Chittenden <sean@chittenden.org>
Re: Moving postgresql.conf tunables into 2003... Rod Taylor <rbt@rbt.ca>
Re: Moving postgresql.conf tunables into 2003... Sean Chittenden <sean@chittenden.org>
Re: Moving postgresql.conf tunables into 2003... Josh Berkus <josh@agliodbs.com>
Re: Moving postgresql.conf tunables into 2003... "Matthew Nuzum" <cobalt@bearfruit.org>
Re: Moving postgresql.conf tunables into 2003... Tom Lane <tgl@sss.pgh.pa.us>
Re: Moving postgresql.conf tunables into 2003... Tom Lane <tgl@sss.pgh.pa.us>
Re: Moving postgresql.conf tunables into 2003... Sean Chittenden <sean@chittenden.org>
Re: Moving postgresql.conf tunables into 2003... "Matthew Nuzum" <cobalt@bearfruit.org>
Re: Moving postgresql.conf tunables into 2003... Chris Travers <chris@travelamericas.com>
Re: Moving postgresql.conf tunables into 2003... "Jim C. Nasby" <jim@nasby.net>
Re: Moving postgresql.conf tunables into 2003... Michael Pohl <michael@newtopia.com>
Re: Moving postgresql.conf tunables into 2003... Bruce Momjian <pgman@candle.pha.pa.us>
Re: Moving postgresql.conf tunables into 2003... Martin Foster <martin@ethereal-realms.org>
Re: Moving postgresql.conf tunables into 2003... Josh Berkus <josh@agliodbs.com>
Re: Moving postgresql.conf tunables into 2003... Sean Chittenden <sean@chittenden.org>
Re: Moving postgresql.conf tunables into 2003... Josh Berkus <josh@agliodbs.com>
Re: Moving postgresql.conf tunables into 2003... Andrew Sullivan <andrew@libertyrms.info>
Re: Moving postgresql.conf tunables into 2003... "Matthew Nuzum" <cobalt@bearfruit.org>
Re: Moving postgresql.conf tunables into 2003... Tom Lane <tgl@sss.pgh.pa.us>
Re: Moving postgresql.conf tunables into 2003... Kaarel <kaarel@future.ee>
Re: Moving postgresql.conf tunables into 2003... "scott.marlowe" <scott.marlowe@ihs.com>
Re: Moving postgresql.conf tunables into 2003... Martin Foster <martin@ethereal-realms.org>
Re: Moving postgresql.conf tunables into 2003... "Michael Mattox" <michael.mattox@verideon.com>
Re: Moving postgresql.conf tunables into 2003... Tom Lane <tgl@sss.pgh.pa.us>
Re: Moving postgresql.conf tunables into 2003... Tom Lane <tgl@sss.pgh.pa.us>
Re: Moving postgresql.conf tunables into 2003... Sean Chittenden <sean@chittenden.org>
Re: Moving postgresql.conf tunables into 2003... Rod Taylor <rbt@rbt.ca>
Re: Moving postgresql.conf tunables into 2003... Sean Chittenden <sean@chittenden.org>
Re: Moving postgresql.conf tunables into 2003... Manfred Koizar <mkoi-pg@aon.at>
Re: Moving postgresql.conf tunables into 2003... Sean Chittenden <sean@chittenden.org>
Use of multipart index with "IN" Rob Messer <rrmesser@yahoo.com>
Re: Use of multipart index with "IN" Tom Lane <tgl@sss.pgh.pa.us>
Re: Moving postgresql.conf tunables into 2003... Manfred Koizar <mkoi-pg@aon.at>
Re: Moving postgresql.conf tunables into 2003... Sean Chittenden <sean@chittenden.org>
Re: Moving postgresql.conf tunables into 2003... Tom Lane <tgl@sss.pgh.pa.us>
Index correlation (was: Moving postgresql.conf tunables into 2003... ) Manfred Koizar <mkoi-pg@aon.at>
Re: Moving postgresql.conf tunables into 2003... Ron <rstpierre@syscor.com>
Re: Moving postgresql.conf tunables into 2003... "Michael Mattox" <michael.mattox@verideon.com>
Re: Moving postgresql.conf tunables into 2003... Sean Chittenden <sean@chittenden.org>
Re: Moving postgresql.conf tunables into 2003... Bruce Momjian <pgman@candle.pha.pa.us>
Re: Moving postgresql.conf tunables into 2003... Martin Foster <martin@ethereal-realms.org>
Re: Moving postgresql.conf tunables into 2003... "scott.marlowe" <scott.marlowe@ihs.com>
Re: Moving postgresql.conf tunables into 2003... Sean Chittenden <sean@chittenden.org>
Re: Moving postgresql.conf tunables into 2003... Tom Lane <tgl@sss.pgh.pa.us>
Re: Moving postgresql.conf tunables into 2003... Brian Hirt <bhirt@mobygames.com>
Re: Moving postgresql.conf tunables into 2003... Sean Chittenden <sean@chittenden.org>
Re: Moving postgresql.conf tunables into 2003... Matthew Hixson <hixson@poindextrose.org>
[jumping in late due to vacation] On Thu, 3 Jul 2003 17:06:46 -0700, Sean Chittenden wrote: >> is some other problem that needs to be solved. (I'd wonder about >> index correlation myself; we know that that equation is pretty >> bogus.) > >Could be. I had him create a multi-column index on the date and a >non-unique highly redundant id. Tom has already suspected index correlation to be a possible source of the problem and recommended to CLUSTER on the index. A weakness of the current planner implementation is that a multi column index is always thought to have low correlation. In your case even after CLUSTER the 2-column index on (date, sensorid) is treated like a single column index with correlation 0.5. I have an experimental patch lying around somewhere that tries to work around these problems by offering different estimation methods for index scans. If you are interested, I'll dig it out. In the meantime have him try with a single column index on date. On 04 Jul 2003 08:29:04 -0400, Rod Taylor wrote: |That's one heck of a poor estimate for the number of rows returned. | |> -> Seq Scan on mss_fwevent (cost=0.00..223312.60 rows=168478 width=12) | (actual time=24253.66..24319.87 rows=320 loops=1) > -> Index Scan using mss_fwevent_evtime_sensorid_idx on mss_fwevent > (cost=0.00..2442524.70 rows=168478 width=12) > (actual time=68.36..132.84 rows=320 loops=1) > Index Cond: ((evtime > (now() - '06:00'::interval)) AND (sensorid = 7)) > Filter: (NOT "action") Estimated number of rows being wrong by a factor 500 seems to be the main problem hiding everything else. With statistics already set to 1000, does this mean that sensorid, evtime, and action are not independent? It'd be interesting to know whether the estimation error comes from "Index Cond" or from "Filter". Servus Manfred
В списке pgsql-performance по дате отправления