Skip site navigation (1) Skip section navigation (2)

Re: is pg_autovacuum so effective ?

From: Markus Schaber <schabios(at)logi-track(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Cc: Gaetano Mendola <gmendola(at)mbigroup(dot)it>
Subject: Re: is pg_autovacuum so effective ?
Date: 2005-02-25 16:28:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Hi, Gaetano,

Gaetano Mendola schrieb:

> Yes, I'm  aware about it indeed I need the analyze because usualy I do on that
> table select regarding last 24 ours so need to analyze it in order to
> collect the statistics for this period.

If you tend to do lots of queries for the last 24 hours, and there is
only a very small percentage of such young rows, partial indices could
be helpful.

You could include all rows that are not older than 24 hours, and
recreate them via cron script daily, so they grow from 24 to 48 hours
between recreations. To avoid a gap in recreation, you could first
create the new index, and then drop the old one, using alternating names.

BTW, a small question for the gurus: does postgres make use of other
indices when creating partial indices?


markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 z├╝rich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios(at)logi-track(dot)com |

In response to

pgsql-performance by date

Next:From: Glenn KusardiDate: 2005-02-26 12:13:07
Subject: PostgreSQL 7.4.3 Performance issues on OpenBSD
Previous:From: Jim C. NasbyDate: 2005-02-25 16:20:05
Subject: Re: Peformance Tuning Opterons/ Hard Disk Layout

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group