pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chad Thompson <chad@weblinkservices.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Index scan never executed?
Date: Fri, 30 May 2003 13:01:07 -0600
Message-ID: <00cd01c326dd$d4342180$32021aac@chad> (raw)
References: <004601c32606$884af960$32021aac@chad>
	<28951.1054233994@sss.pgh.pa.us>

>
> I guess it's a little unclear what to print for the first number when no
> rows are output at all.  The code evidently is using the total time spent
> in the plan node, but I think it would be at least as justifiable to
> print a zero instead.  Would you have found that less confusing?  Anyone
> else have an opinion about whether to change that detail?
>

No, that makes perfect sense now that it has been explained.

> Perhaps an index on project_id would be more helpful, or a two-column
> index on (project_id, start_time).

As usual, you are in fine form.  A two-column index brought the query from
115 sec to 6.

Thanks!
Chad




view thread (5+ messages)

Message-ID: <00cd01c326dd$d4342180$32021aac@chad>
Permalink:  ../00cd01c326dd$d4342180$32021aac@chad/
Also on:    postgresql.org/message-id/00cd01c326dd$d4342180$32021aac@chad

 · 

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: chad@weblinkservices.com, tgl@sss.pgh.pa.us
  Subject: Re: Index scan never executed?
  In-Reply-To: <00cd01c326dd$d4342180$32021aac@chad>

* 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