From: | Scott Marlowe <smarlowe(at)g2switchworks(dot)com> |
---|---|
To: | Michael Riess <mlriess(at)gmx(dot)de> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: 15,000 tables |
Date: | 2005-12-01 21:15:59 |
Message-ID: | 1133471756.16010.63.camel@state.g2switchworks.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda pgsql-performance |
On Thu, 2005-12-01 at 13:34, Michael Riess wrote:
> > Michael Riess <mlriess(at)gmx(dot)de> writes:
> >>> On 12/1/05, Michael Riess <mlriess(at)gmx(dot)de> wrote:
> >>>> we are currently running a postgres server (upgraded to 8.1) which
> >>>> has one large database with approx. 15,000 tables. Unfortunately
> >>>> performance suffers from that, because the internal tables
> >>>> (especially that which holds the attribute info) get too large.
> >>>>
> >>>> (We NEED that many tables, please don't recommend to reduce them)
> >>>>
> >>> Have you ANALYZEd your database? VACUUMing?
> >> Of course ... before 8.1 we routinely did a vacuum full analyze each
> >> night. As of 8.1 we use autovacuum.
> >
> > VACUUM FULL was probably always overkill, unless "always" includes
> > versions prior to 7.3...
>
> Well, we tried switching to daily VACUUM ANALYZE and weekly VACUUM FULL,
> but the database got considerably slower near the end of the week.
Generally, this means either your vacuums are too infrequent, or your
fsm settings are too small.
Note that vacuum and analyze aren't "married" any more, like in the old
days. You can issue either separately, depending on your usage
conditions.
Note that with the newest versions of PostgreSQL you can change the
settings for vacuum priority so that while it takes longer to vacuum, it
doesn't stomp on the other processes toes so much anymore, so more
frequent plain vacuums may be the answer.
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2005-12-01 21:16:04 | Re: 15,000 tables |
Previous Message | Alvaro Herrera | 2005-12-01 20:05:25 | Re: " campo con apostrofe" |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2005-12-01 21:16:04 | Re: 15,000 tables |
Previous Message | Merlin Moncure | 2005-12-01 20:28:58 | Re: 15,000 tables |