Re: Never ending delete story - Mailing list pgsql-performance

From Tom Lane
Subject Re: Never ending delete story
Date
Msg-id 22410.1113201658@sss.pgh.pa.us
Whole thread Raw
In response to Never ending delete story  (Jarosław Pałka <jaroslaw.palka@mrt-system.pl>)
List pgsql-performance
=?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

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Server crashing
Next
From: "Tambet Matiisen"
Date:
Subject: Re: performance - triggers, row existence etc.