Re: [PERFORM] Question about VACUUM

2011-12-06 Thread Josh Berkus
On 12/5/11 1:36 PM, Kevin Grittner wrote: > I understand the impulse to run autovacuum less frequently or less > aggressively. When we first started running PostgreSQL the default > configuration was very cautious. The default settings are deliberately cautious, as default settings should be. Bu

Re: [PERFORM] Response time increases over time

2011-12-06 Thread Josh Berkus
On 12/6/11 4:30 PM, Havasvölgyi Ottó wrote: > Is there so much difference between 8.4 and 9.1, or is this something else? > Please tell me if any other info is needed. It is fairly likely that the difference you're seeing here is due to improvements made in checkpointing and other operations made

Re: [PERFORM] Different query plans on same servers

2011-12-06 Thread Mario Splivalo
On 12/06/2011 09:29 PM, Kevin Grittner wrote: > "Kevin Grittner" wrote: > >> But both servers develop that estimate for the join size. > > [sigh] Those *were* both from the production server. Please show > us the EXPLAIN ANALYZE from the other server. Huh, right... missed that one. Here is

Re: [PERFORM] Different query plans on same servers

2011-12-06 Thread Mario Splivalo
On 12/06/2011 09:17 PM, Kevin Grittner wrote: > > The hash join path must look more expensive on the first machine, > for some reason. > > Mario, could you post the result of running this query from both > servers?: > > http://wiki.postgresql.org/wiki/Server_Configuration Sure. Here is from

Re: [PERFORM] Different query plans on same servers

2011-12-06 Thread Mario Splivalo
On 12/06/2011 09:00 PM, Tom Lane wrote: > Mario Splivalo writes: >> I have 8.4.8 on producion and 8.4.9 on test, could that explain the >> difference in plans chosen? > > I'd wonder first if you have the same statistics settings on both. > The big problem here is that the estimation of the join s

[PERFORM] Response time increases over time

2011-12-06 Thread Havasvölgyi Ottó
Hi all, I am running a load simulation on Debian with PostgreSQL 8.4.9 (standard Debian package). Certain number of clients do the following stepsin a transaction (read commited level) periodically (about 1.1 transaction per second / client) and concurrently: -reads a record of table Machine a

Re: [PERFORM] Different query plans on same servers

2011-12-06 Thread Kevin Grittner
"Kevin Grittner" wrote: > But both servers develop that estimate for the join size. [sigh] Those *were* both from the production server. Please show us the EXPLAIN ANALYZE from the other server. -Kevin -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make

Re: [PERFORM] Different query plans on same servers

2011-12-06 Thread Kevin Grittner
Tom Lane wrote: > I'd wonder first if you have the same statistics settings on both. > The big problem here is that the estimation of the join size is > bad (8588 versus 0). But both servers develop that estimate for the join size. I was wondering more about whether the costing factors were r

Re: [PERFORM] Different query plans on same servers

2011-12-06 Thread Tom Lane
Mario Splivalo writes: > I have 8.4.8 on producion and 8.4.9 on test, could that explain the > difference in plans chosen? I'd wonder first if you have the same statistics settings on both. The big problem here is that the estimation of the join size is bad (8588 versus 0).

[PERFORM] Different query plans on same servers

2011-12-06 Thread Mario Splivalo
I have a fairly simple query: SELECT FROM "tubesite_image" INNER JOIN "tubesite_object" ON ("tubesite_image"."object_ptr_id" = "tubesite_object"."id") WHERE "tubesite_object"."site_id" = 8 ORDER BY "tubesite_object"."pub_date" ASC LIMIT 21; That query is having a bad qu