pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexy Khrabrov <deliverable@gmail.com>
To: Greg Smith <gsmith@gregsmith.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: two memory-consuming postgres processes
Date: Fri, 2 May 2008 14:30:17 -0700
Message-ID: <1F7A4C3D-C8A3-44BC-A324-E9BA409BB479@gmail.com> (raw)
In-Reply-To: <Pine.GSO.4.64.0805021714580.2455@westnet.com>
References: <A728C858-76CF-473F-917B-3C9EA4AA75CF@gmail.com>
	<dcc563d10805021230i5916561k3962a41e2afa894c@mail.gmail.com>
	<27A4D379-2553-496D-A96C-102F2A5E62C2@gmail.com>
	<dcc563d10805021253n1589baa7u559fdfc8053d23d3@mail.gmail.com>
	<21403.1209759217@sss.pgh.pa.us>
	<72E02D29-848B-467A-AE6B-401568010254@gmail.com>
	<dcc563d10805021340u274ff4fegcf8902f66118d7c1@mail.gmail.com>
	<481B8160.2090106@emolecules.com>
	<C25E5DBA-B649-4483-B1A2-2A881522B891@gmail.com>
	<Pine.GSO.4.64.0805021714580.2455@westnet.com>

On May 2, 2008, at 2:23 PM, Greg Smith wrote:

> On Fri, 2 May 2008, Alexy Khrabrov wrote:
>
>> I created several indices for the primary table, yes.
>
> That may be part of your problem.  All of the indexes all are being  
> updated along with the main data in the row each time you touch a  
> record. There's some optimization there in 8.3 but it doesn't make  
> index overhead go away completely.  As mentioned already, the  
> optimal solution to problems in this area is to adjust table  
> normalization as much as feasible to limit what you're updating.

Was wondering about it, too -- intuitively I 'd like to say, "stop all  
indexing" until the column is added, then say "reindex", is it  
doable?  Or would it take longer anyways?  SInce I don't index on that  
new column, I'd assume my old indices would do -- do they change  
because of rows deletions/insertions, with the effective new rows  
addresses?

Cheers,
Alexy



view thread (21+ messages)  latest in thread

Message-ID: <1F7A4C3D-C8A3-44BC-A324-E9BA409BB479@gmail.com>
Permalink:  ../1F7A4C3D-C8A3-44BC-A324-E9BA409BB479@gmail.com/
Also on:    postgresql.org/message-id/1F7A4C3D-C8A3-44BC-A324-E9BA409BB479@gmail.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: deliverable@gmail.com, gsmith@gregsmith.com
  Subject: Re: two memory-consuming postgres processes
  In-Reply-To: <1F7A4C3D-C8A3-44BC-A324-E9BA409BB479@gmail.com>
  References: <A728C858-76CF-473F-917B-3C9EA4AA75CF@gmail.com> <dcc563d10805021230i5916561k3962a41e2afa894c@mail.gmail.com> <27A4D379-2553-496D-A96C-102F2A5E62C2@gmail.com> <dcc563d10805021253n1589baa7u559fdfc8053d23d3@mail.gmail.com> <21403.1209759217@sss.pgh.pa.us> <72E02D29-848B-467A-AE6B-401568010254@gmail.com> <dcc563d10805021340u274ff4fegcf8902f66118d7c1@mail.gmail.com> <481B8160.2090106@emolecules.com> <C25E5DBA-B649-4483-B1A2-2A881522B891@gmail.com> <Pine.GSO.4.64.0805021714580.2455@westnet.com> <1F7A4C3D-C8A3-44BC-A324-E9BA409BB479@gmail.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