pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: marc@oscar.eng.cv.net
To: pgsql-sql@postgresql.org
Subject: Re: Index of a table is not used (in any case)
Date: Tue, 23 Oct 2001 13:28:47 GMT
Message-ID: <slrn9tas6u.2m3v.marc@oscar.eng.cv.net> (raw)
References: <web-490372@davinci.ethosmedia.com>

In article <web-490372@davinci.ethosmedia.com>, Josh Berkus wrote:
> Reinier,
> 
> For future notice, [SQL] is the correct list for this kind of inquiry.
> Please do not post it to [HACKERS].  And please don't cross-post ... it
> results in a lot of needless duplication of effort.
> 
>> I have defined a table and the necessary indices.
> 
>> Is the order of index creation relevant? I.e., should I create the
>> indices before inserting
>> entries or the other way around?
> 
> Ummm ... not to be obvious, or anything, but did you VACCUUM ANALYZE
> after populating your table?
> 
> There's also some special steps to take if you are regularly deleting
> large numbers of records.

Could you tell me what those steps are or where to find them?  I have
a db that I delete about 1 million records a day from in a batch job.
The only special thing I do is every few days I reindex the table
involved to reclame the space burned by the indexes not reclaiming
space on deletion of rows.  What other good and useful things could I
do?

Thanks 

marc


> 
> -Josh
> 
> ______AGLIO DATABASE SOLUTIONS___________________________
>                                        Josh Berkus
>   Complete information technology      josh@agliodbs.com
>    and data management solutions       (415) 565-7293
>   for law firms, small businesses        fax 621-2533
>     and non-profit organizations.      San Francisco
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster



view thread (11+ messages)  latest in thread

Message-ID: <slrn9tas6u.2m3v.marc@oscar.eng.cv.net>
Permalink:  ../slrn9tas6u.2m3v.marc@oscar.eng.cv.net/
Also on:    postgresql.org/message-id/slrn9tas6u.2m3v.marc@oscar.eng.cv.net

 · 

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-sql@postgresql.org
  Cc: marc@oscar.eng.cv.net
  Subject: Re: Index of a table is not used (in any case)
  In-Reply-To: <slrn9tas6u.2m3v.marc@oscar.eng.cv.net>

* 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