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 35E023A40E6 for ; Sun, 31 Oct 2004 10:27:13 +0000 (GMT) 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 41598-08 for ; Sun, 31 Oct 2004 10:27:06 +0000 (GMT) Received: from web11.manitu.net (web11.manitu.net [217.11.48.111]) by svr1.postgresql.org (Postfix) with ESMTP id 9BC9F3A40E5 for ; Sun, 31 Oct 2004 10:27:07 +0000 (GMT) Received: from [192.168.0.1] (dsl-082-082-203-101.arcor-ip.net [82.82.203.101]) (authenticated) by web11.manitu.net (8.10.2-SOL3/8.10.2) with ESMTP id i9VAQvw17192; Sun, 31 Oct 2004 11:26:57 +0100 Subject: Re: psql large RSS (1.6GB) From: Markus Bertheau To: TTK Ciar Cc: pgsql-performance@postgresql.org In-Reply-To: <20041027075748.GA8355@hardpoint.ciar.org> References: <20041027075748.GA8355@hardpoint.ciar.org> Content-Type: text/plain; charset=UTF-8 Message-Id: <1099218421.2636.0.camel@teetnang> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Sun, 31 Oct 2004 11:27:01 +0100 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_DSBL X-Spam-Level: * X-Archive-Number: 200410/475 X-Sequence-Number: 8951 =D0=92 =D0=A1=D1=80=D0=B4, 27.10.2004, =D0=B2 09:57, TTK Ciar =D0=BF=D0=B8= =D1=88=D0=B5=D1=82: > brad=3D# explain analyse select ServerDisks.servername,ServerDisks.diskse= rial,ServerDisks.diskmountpoint,DiskFiles.name,DiskFiles.md5 from DiskFiles= ,ServerDisks where DiskFiles.diskserial=3DServerDisks.diskserial; > QUERY PLAN = =20 > ------------------------------------------------------------------ > Hash Join (cost=3D22.50..65.00 rows=3D1000 width=3D274) (actual time=3D= 118.584..124653.729 rows=3D10133349 loops=3D1) > Hash Cond: (("outer".diskserial)::text =3D ("inner".diskserial)::text) > -> Seq Scan on diskfiles (cost=3D0.00..20.00 rows=3D1000 width=3D198= ) (actual time=3D7.201..31336.063 rows=3D10133349 loops=3D1) > -> Hash (cost=3D20.00..20.00 rows=3D1000 width=3D158) (actual time= =3D90.821..90.821 rows=3D0 loops=3D1) > -> Seq Scan on serverdisks (cost=3D0.00..20.00 rows=3D1000 wid= th=3D158) (actual time=3D9.985..87.364 rows=3D2280 loops=3D1) > Total runtime: 130944.586 ms You should run ANALYZE on your database once in a while. --=20 Markus Bertheau