pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard van den Berg <richard.vandenberg@trust-factory.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-perform <pgsql-performance@postgresql.org>
Subject: Re: When are index scans used over seq scans?
Date: Fri, 22 Apr 2005 11:04:17 +0200
Message-ID: <4268BE11.6070200@trust-factory.com> (raw)
In-Reply-To: <16775.1114100611@sss.pgh.pa.us>
References: <426665A0.1080102@trust-factory.com>
	<26710.1114007961@sss.pgh.pa.us>
	<4267612C.10803@trust-factory.com>
	<15074.1114093502@sss.pgh.pa.us>
	<4267D1ED.7010606@trust-factory.com>
	<16775.1114100611@sss.pgh.pa.us>

Tom Lane wrote:
> Are the tables in question particularly wide (many columns)?

Yes they are. They both have 20 columns. If I cut down the duration
table to just 1 column of timestamps, the planner uses the index.

Interesting, so I could store just the timestamps in another table (view
doesn't help) to speed up this query.

I am using the debian package. How can I tell if profiling is enabled?

Thanks a lot,

-- 
Richard van den Berg, CISSP
-------------------------------------------
Trust Factory B.V. |     www.dna-portal.net
Bazarstraat 44a    |  www.trust-factory.com
2518AK The Hague   |  Phone: +31 70 3620684
The Netherlands    |  Fax  : +31 70 3603009
-------------------------------------------



view thread (13+ messages)

Message-ID: <4268BE11.6070200@trust-factory.com>
Permalink:  ../4268BE11.6070200@trust-factory.com/
Also on:    postgresql.org/message-id/4268BE11.6070200@trust-factory.com

 · 

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: richard.vandenberg@trust-factory.com, tgl@sss.pgh.pa.us
  Subject: Re: When are index scans used over seq scans?
  In-Reply-To: <4268BE11.6070200@trust-factory.com>

* 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