pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomasz Myrta <jasiek@klaster.net>
To: ries@jongert.nl
Cc: pgsql-sql@postgresql.org
Subject: Re: is this explain good or bad???
Date: Fri, 19 Sep 2003 08:51:50 +0200
Message-ID: <3F6AA786.1080404@klaster.net> (raw)
In-Reply-To: <002b01c37e77$e65b7fb0$fd01000a@IT001>
References: <002b01c37e77$e65b7fb0$fd01000a@IT001>

> explain select count(*) from sq_logfile;
Not too helpful.
Better choice is:
explain analyze select * from sq_logfile;

Your explains show that selecting from view is 4 times slower than 
selecting from a table (35988:128282). It is possible.
Anyway counting 1 million rows usualy takes a long time...

Regards,
Tomasz Myrta




view thread (3+ messages)  latest in thread

Message-ID: <3F6AA786.1080404@klaster.net>
Permalink:  ../3F6AA786.1080404@klaster.net/
Also on:    postgresql.org/message-id/3F6AA786.1080404@klaster.net

 · 

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-sql@postgresql.org
  Cc: jasiek@klaster.net, ries@jongert.nl
  Subject: Re: is this explain good or bad???
  In-Reply-To: <3F6AA786.1080404@klaster.net>

* 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