pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jarosław Pałka <jaroslaw.palka@mrt-system.pl>
Cc: pgsql-performance@postgresql.org
Subject: Re: Never ending delete story
Date: Mon, 11 Apr 2005 02:40:58 -0400
Message-ID: <22410.1113201658@sss.pgh.pa.us> (raw)
In-Reply-To: <42544F01.7090208@mrt-system.pl>
References: <42544F01.7090208@mrt-system.pl>

=?UTF-8?B?SmFyb3PFgmF3IFBhxYJrYQ==?= <jaroslaw.palka@mrt-system.pl> writes:
> We are running PostgreSQL server version 7.4.6 on RedHat 9 (Shrike) on 
> single Pentium 4 (2.66 GHz) box with SCSI disc and 512 MB RAM.
> Our database contains several tables (small size) and one special table 
> with ~1000000 records (it contains log entries from system activity).We 
> decided that its time to do a little clean-up and  it's still running 
> (for about  12 hours) and it seems that it won't stop :((

Do you have any foreign keys linking *to* (not from) this table?
If so, they probably need indexes on the far end.  Also check for
datatype discrepancies.

			regards, tom lane



view thread (2+ messages)

Message-ID: <22410.1113201658@sss.pgh.pa.us>
Permalink:  ../22410.1113201658@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22410.1113201658@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, jaroslaw.palka@mrt-system.pl
  Subject: Re: Never ending delete story
  In-Reply-To: <22410.1113201658@sss.pgh.pa.us>

* 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