Re: slow query performance - Mailing list pgsql-general

From Dave Weaver
Subject Re: slow query performance
Date
Msg-id 200310310833.h9V8XJ419519@server-2.twdl.co.uk
Whole thread Raw
In response to Re: slow query performance  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List 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.



pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: Automatic auditing suggestion
Next
From: Hervé Piedvache
Date:
Subject: Re: formatting of SQL sent by PHP to postgres