pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabios@logi-track.com>
To: pgsql-performance@postgresql.org
Cc: Gaetano Mendola <gmendola@mbigroup.it>
Subject: Re: is pg_autovacuum so effective ?
Date: Fri, 25 Feb 2005 17:28:58 +0100
Message-ID: <421F524A.1010804@logi-track.com> (raw)
In-Reply-To: <421E556E.6010202@mbigroup.it>
References: <cvg29i$2l69$1@news.hub.org>
	<12400.1109107683@sss.pgh.pa.us>
	<421BD64E.30803@bigfoot.com>
	<60psyr265t.fsf@dba2.int.libertyrms.com>
	<421CD6F0.8010406@zeut.net>
	<421DB36B.70004@bigfoot.com>
	<421DC4D5.1070909@logi-track.com>
	<421E556E.6010202@mbigroup.it>

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?

HTH,
Markus

-- 
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@logi-track.com | www.logi-track.com

Attachments:

  signature.asc (application/pgp-signature, 255B) download

view thread (16+ messages)  latest in thread

Message-ID: <421F524A.1010804@logi-track.com>
Permalink:  ../421F524A.1010804@logi-track.com/
Also on:    postgresql.org/message-id/421F524A.1010804@logi-track.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: schabios@logi-track.com, gmendola@mbigroup.it
  Subject: Re: is pg_autovacuum so effective ?
  In-Reply-To: <421F524A.1010804@logi-track.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox