X-Original-To: pgsql-admin@postgresql.org Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 25076476371 for ; Thu, 13 Mar 2003 23:55:11 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.8/8.12.8) with ESMTP id h2E4tGub018516; Thu, 13 Mar 2003 23:55:16 -0500 (EST) To: jlhudson@www.dminfo.com Cc: pgsql-admin@postgresql.org Subject: Re: inserts slow on table of about 600K recs In-reply-to: <3E71513A.826C8E8C@dminfo.com> References: <3E71513A.826C8E8C@dminfo.com> Comments: In-reply-to Joe Hudson message dated "Thu, 13 Mar 2003 19:49:14 -0800" Date: Thu, 13 Mar 2003 23:55:15 -0500 Message-ID: <18515.1047617715@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200303/209 X-Sequence-Number: 7849 Joe Hudson writes: > Running v7.2.2 on Linux RH 7.2 with 256Mb RAM: inserts "apparently" > slowed down to taking a couple of seconds when the table reached around > 600K recs / 190 Mb. Inserting per se should be a constant-time operation, independent of the size of the table. The index updates are not constant-time, but I can't see any reason for their performance to suddenly fall off a cliff either. What I'm wondering about is triggers --- in particular, do you have any foreign keys in this table? Checking the foreign references could be where the problem is. regards, tom lane