X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3B4E1D1B514 for ; Fri, 7 Nov 2003 20:45:33 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 81096-10 for ; Fri, 7 Nov 2003 16:45:24 -0400 (AST) Received: from severn2 (dsl-082-082-089-060.arcor-ip.net [82.82.89.60]) by svr1.postgresql.org (Postfix) with ESMTP id 03A7BD1B4FB for ; Fri, 7 Nov 2003 16:45:07 -0400 (AST) Received: by severn2 (Postfix, from userid 500) id D9A386FE50; Fri, 7 Nov 2003 21:45:06 +0100 (CET) Subject: Re: small table occupies many relpages From: Markus Bertheau To: Tom Lane Cc: pgsql-admin@postgresql.org, bertheau@bab24.de In-Reply-To: <29091.1068219946@sss.pgh.pa.us> References: <1068200182.2191.15.camel@silizium.cenes-intern.de> <29091.1068219946@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Message-Id: <1068237906.5574.10.camel@severn2> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-2) Date: Fri, 07 Nov 2003 21:45:06 +0100 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/130 X-Sequence-Number: 11118 =D0=92 =D0=9F=D1=82=D0=BD, 07.11.2003, =D0=B2 16:45, Tom Lane =D0=BF=D0=B8= =D1=88=D0=B5=D1=82: > Markus Bertheau writes: > > It has a unique index on virtual_domain. Every day we do <10000 queries > > of the form > > insert into virtual_domains values (default, 'www.something.de') >=20 > So you're expecting these inserts to fail because of unique index > violations? Yes. >=20 > > The big table size slows down sequential scans significantly. What can > > we do to prevent growth of the table? >=20 > Vacuum more often. You have to get rid of the tuples that failed the > index check. They are already in the table when the index spits up. Does pg_autovacuum do something wrong, that it not catches this case? --=20 Markus Bertheau