Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0R56ul35492 for ; Sun, 27 Jan 2002 00:06:56 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g0R56uf26920; Sun, 27 Jan 2002 00:06:56 -0500 (EST) To: "Marc Mitchell" cc: pgsql-admin@postgresql.org Subject: Re: INSERT performace. In-reply-to: <00a001c1a6d7$c833c520$7401a8c0@Home> References: <00a001c1a6d7$c833c520$7401a8c0@Home> Comments: In-reply-to "Marc Mitchell" message dated "Sat, 26 Jan 2002 20:10:19 -0600" Date: Sun, 27 Jan 2002 00:06:55 -0500 Message-ID: <26916.1012108015@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200201/205 X-Sequence-Number: 3090 "Marc Mitchell" writes: > We have a fresh database and have begun to observe performance degradation > for INSERTs as a table went from empty to 100,000-ish rows. Initial > INSERTs were sub second while after 30k rows, they were 1-3 seconds. > Note that we have done NO performance tuning yet nor are there any indexes > on the tables. INSERT per se should be a constant-time operation: stick another tuple on the end of the file. There is undoubtedly something you're not telling us about the database schema. Foreign keys, triggers, rules, constraints, something like that? regards, tom lane