X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 84D0E53980 for ; Mon, 11 Apr 2005 03:41:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 06154-05 for ; Mon, 11 Apr 2005 06:41:04 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id F3EB753974 for ; Mon, 11 Apr 2005 03:41:03 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3B6ewje022411; Mon, 11 Apr 2005 02:40:58 -0400 (EDT) To: =?UTF-8?B?SmFyb3PFgmF3IFBhxYJrYQ==?= Cc: pgsql-performance@postgresql.org Subject: Re: Never ending delete story In-reply-to: <42544F01.7090208@mrt-system.pl> References: <42544F01.7090208@mrt-system.pl> Comments: In-reply-to =?UTF-8?B?SmFyb3PFgmF3IFBhxYJrYQ==?= message dated "Wed, 06 Apr 2005 23:05:05 +0200" Date: Mon, 11 Apr 2005 02:40:58 -0400 Message-ID: <22410.1113201658@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/213 X-Sequence-Number: 11610 =?UTF-8?B?SmFyb3PFgmF3IFBhxYJrYQ==?= 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