Re: slow query performance

From: "Dave Weaver" <davew(at)wsieurope(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: slow query performance
Date: 2003-10-31 08:33:18
Message-ID: 200310310833.h9V8XJ419519@server-2.twdl.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephan Szabo wrote:
> But, back to the question, what is the definition of the index it's using?
> If you don't have already have an index on (station,valid_time does
> making one help?

From my original post:

Index "obs_pkey"
Attribute | Type
------------+--------------------------
valid_time | timestamp with time zone
station | character(10)
unique btree

Index "obs_station"
Attribute | Type
-----------+---------------
station | character(10)
btree

Index "obs_valid_time"
Attribute | Type
------------+--------------------------
valid_time | timestamp with time zone
btree

(I suspect the obs_valid_time index is redundant, because of the obs_pkey
index - is that right?)

Cheers,
Dave.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Hervé Piedvache 2003-10-31 08:55:30 Re: formatting of SQL sent by PHP to postgres
Previous Message Karsten Hilbert 2003-10-31 08:13:48 Re: Automatic auditing suggestion