pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Alexy Khrabrov <deliverable@gmail.com>
Cc: Greg Smith <gsmith@gregsmith.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: two memory-consuming postgres processes
Date: Fri, 02 May 2008 17:29:00 -0500
Message-ID: <481B4F3E.EE98.0025.0@wicourts.gov> (raw)
In-Reply-To: <C123A0EA-7B13-4297-9263-270224DF1F10@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>
	<481B44AF.EE98.0025.0@wicourts.gov>
	<C123A0EA-7B13-4297-9263-270224DF1F10@gmail.com>

>>> Alexy Khrabrov wrote: 
 
> OK.  I've cancelled all previous attempts at UPDATE and will now  
> create some derived tables.  See no changes in the previous huge
table  
> -- the added column was completely empty.  Dropped it.  Should I  
> vacuum just in case, or am I guaranteed not to have any extra rows  
> since no UPDATE actually went through and none are showing?
 
The canceled attempts would have left dead space.  If you have
autovacuum running, it probably made the space available for reuse,
but depending on exactly how you got to where you are, you may have
bloat.  Personally, I would do a VACUUM ANALYZE VERBOSE and capture
the output.  If bloat is too bad, you may want to CLUSTER the table
(if you have the free disk space for a temporary extra copy of the
table) or VACUUM FULL followed by REINDEX (if you don't have that much
free disk space).
 
Let us know if you need help interpreting the VERBOSE output.
 
-Kevin
 




view thread (21+ messages)  latest in thread

Message-ID: <481B4F3E.EE98.0025.0@wicourts.gov>
Permalink:  ../481B4F3E.EE98.0025.0@wicourts.gov/
Also on:    postgresql.org/message-id/481B4F3E.EE98.0025.0@wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, deliverable@gmail.com, gsmith@gregsmith.com
  Subject: Re: two memory-consuming postgres processes
  In-Reply-To: <481B4F3E.EE98.0025.0@wicourts.gov>

* 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