pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hannu Krosing <hannu@2ndquadrant.com>
To: raghavendra t <raagavendra.rao@gmail.com>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-performance@postgresql.org
Subject: Re: How to fast the REINDEX
Date: Thu, 01 Apr 2010 13:54:33 +0300
Message-ID: <1270119273.6482.212.camel@hvost> (raw)
In-Reply-To: <l2ubc7de5a31003311557ga67a0e83l8865e2222c63878c@mail.gmail.com>
References: <p2ubc7de5a31003311351p83987eedpbb86727ab9fa9ca3@mail.gmail.com>
	<4BB3722F02000025000302BF@gw.wicourts.gov>
	<j2tbc7de5a31003311433h5c4ce21ej79aa67067e98a4bf@mail.gmail.com>
	<4BB37AE402000025000302C5@gw.wicourts.gov>
	<y2rbc7de5a31003311447z44c0841ey9f5d9d6d41d2ca06@mail.gmail.com>
	<4BB37DAB02000025000302D1@gw.wicourts.gov>
	<m2nbc7de5a31003311500sce514e92k796870a663b38438@mail.gmail.com>
	<4BB3821C02000025000302D7@gw.wicourts.gov>
	<l2ubc7de5a31003311557ga67a0e83l8865e2222c63878c@mail.gmail.com>

On Thu, 2010-04-01 at 04:27 +0530, raghavendra t wrote:
>         I'm sorry I couldn't come up with more, but what you've
>         provided so
>         far is roughly equivalent to me telling you that it takes over
>         four
>         hours to travel to see my Uncle Jim, and then asking you how I
>         can
>         find out how he's doing in less time than that.  There's just
>         not
>         much to go on.  :-(
>         
>         If you proceed with the course suggested in the URL I
>         referenced,
>         people on the list have a chance to be more helpful to you.
> Instead of looking into the priority of the question or where it has
> to be posted, it would be appreciated to keep a discussion to the
> point mentioned.  Truely this question belong to some other place as
> you have mentioned in the URL. But answer for Q1 might be expected
> alteast. 

Ok, here is my answer to your Q1:

Q1. What are the parameters will effect, when issuing the REINDEX
command

A: Assuming you meant what parameters affect performance of REINDEX
command.

Most parameters that affect general performance affect also REINDEX
command.

Some that affect more are:

* amount of RAM in your server - the most important thing

* speed of disk subsystem - next most important in case not all of
active data fits in memory 

Tunables

*  maintenance_work_mem - affects how much of sorting can be done in
memory, if you can afford to have maintenance_work_mem > largest index
size then sorting for index creation can be done in RAM only and is
significantly faster than when doing tape sort with intermediate files
on disks.

* wal_buffers - the bigger the better here, but competes with how big
you can make maintenance_work_mem . If more of heap and created indexes
can be kept in shared memory, everything runs faster.

* checkpoint_segments - affects how often whole wal_buffers is synced to
disk, if done too often then wastes lot of disk bandwidth for no good
reason.

* other chekpoint_* - tune to avoid excessive checkpointing.

> Hope i could get the information from the other Thread in other
> catagory.

Nah, actually [PERFORM] is the right place to ask. 

Just most people got the impression that you may be doing unnecessary
REINDEXing, and the best way to speed up unneeded things is not to do
them ;)

> Thank you
>  
> Regards
> Raghavendra



-- 
Hannu Krosing   http://www.2ndQuadrant.com
PostgreSQL Scalability and Availability 
   Services, Consulting and Training





view thread (19+ messages)  latest in thread

Message-ID: <1270119273.6482.212.camel@hvost>
Permalink:  ../1270119273.6482.212.camel@hvost/
Also on:    postgresql.org/message-id/1270119273.6482.212.camel@hvost

 · 

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: hannu@2ndquadrant.com, raagavendra.rao@gmail.com, Kevin.Grittner@wicourts.gov
  Subject: Re: How to fast the REINDEX
  In-Reply-To: <1270119273.6482.212.camel@hvost>

* 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