pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Bertheau <twanger@bluetwanger.de>
To: TTK Ciar <ttk2@hardpoint.ciar.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: psql large RSS (1.6GB)
Date: Sun, 31 Oct 2004 11:27:01 +0100
Message-ID: <1099218421.2636.0.camel@teetnang> (raw)
In-Reply-To: <20041027075748.GA8355@hardpoint.ciar.org>
References: <20041027075748.GA8355@hardpoint.ciar.org>

В Срд, 27.10.2004, в 09:57, TTK Ciar пишет:

> brad=# explain analyse select ServerDisks.servername,ServerDisks.diskserial,ServerDisks.diskmountpoint,DiskFiles.name,DiskFiles.md5 from DiskFiles,ServerDisks where DiskFiles.diskserial=ServerDisks.diskserial;
>                           QUERY PLAN                                                         
> ------------------------------------------------------------------
>  Hash Join  (cost=22.50..65.00 rows=1000 width=274) (actual time=118.584..124653.729 rows=10133349 loops=1)
>    Hash Cond: (("outer".diskserial)::text = ("inner".diskserial)::text)
>    ->  Seq Scan on diskfiles  (cost=0.00..20.00 rows=1000 width=198) (actual time=7.201..31336.063 rows=10133349 loops=1)
>    ->  Hash  (cost=20.00..20.00 rows=1000 width=158) (actual time=90.821..90.821 rows=0 loops=1)
>          ->  Seq Scan on serverdisks  (cost=0.00..20.00 rows=1000 width=158) (actual time=9.985..87.364 rows=2280 loops=1)
>  Total runtime: 130944.586 ms

You should run ANALYZE on your database once in a while.

-- 
Markus Bertheau <twanger@bluetwanger.de>




view thread (7+ messages)  latest in thread

Message-ID: <1099218421.2636.0.camel@teetnang>
Permalink:  ../1099218421.2636.0.camel@teetnang/
Also on:    postgresql.org/message-id/1099218421.2636.0.camel@teetnang

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: twanger@bluetwanger.de, ttk2@hardpoint.ciar.org
  Subject: Re: psql large RSS (1.6GB)
  In-Reply-To: <1099218421.2636.0.camel@teetnang>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox