Re: Postgres performance slowly gets worse over a month

From: "Marc Mitchell" <marcm(at)eisolution(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Postgres performance slowly gets worse over a month
Date: 2002-07-24 18:04:05
Message-ID: 001301c2333c$8343ace0$3c0aa8c0@nmtransfer.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Marc Mitchell" <marcm(at)eisolution(dot)com>
Cc: "Robert M. Meyer" <rmeyer(at)installs(dot)com>; "Naomi Walker"
<nwalker(at)eldocomp(dot)com>; <pgsql-admin(at)postgresql(dot)org>
Sent: Wednesday, July 24, 2002 10:21 AM
Subject: Re: [ADMIN] Postgres performance slowly gets worse over a month

> "Marc Mitchell" <marcm(at)eisolution(dot)com> writes:
> > Our short term fix was to turn down the value of random_page_cost.
> > However, as Tom Lane very rightly noted in response to a similar
posting,
> > this is a total hack. Our goal is to switch to 7.2 in the hopes that
the
> > "WHERE" extension to the "CREATE INDEX" command coupled with greater
> > control of the sample space used in statistics will be the true
> > answer.
>
> Actually, 7.2 should fix this without any need for messing with partial
> indexes. The new statistics code will realize that zero is an outlier,
> and will estimate scans for other target values differently.

That's welcome news. Two follow-up questions if you could:

1) Is there any inherit value or "dis-value" to using a partial index in
this case? Given that 50% of the table has a value the we have no need to
be supported via an index, is there any reason not to use a partial index?

2) If we stay in 7.1, would changing the foriegn key field from "NOT NULL"
(where we currently populate with zero) to nullable (where we would
populate instead with null) have any effect on performace? The hope would
be that nulls might be treated differently within the 7.1 stats gathering
process than non-null values. This would be a better, albeit still
temporary, solution in our current environment than the random_page_access
hack we chose for now.

Thanks,

Marc Mitchell
Enterprise Information Solutions, Inc.
4910 Main Street
Downers Grove, IL 60515
marcm(at)eisolution(dot)com

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2002-07-24 18:06:33 Re: Postgres performance slowly gets worse over a month
Previous Message Robert Treat 2002-07-24 16:28:04 Re: Revoke