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 11:27:32
Message-ID: 200310311127.h9VBRX427453@server-2.twdl.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mark wrote:
> - interchanging the key order for the "obs_pkey" index and

I will try this.

> - clustering the "obs" table on "station"

Sorry, I don't understand what you mean by this - can you explain?

> create index obs_valid_time _stat1 on obs(valid_time) where station =
'station 1';
>

Interesting. I didn't know you could do that (I have a lot to learn!).
There are about 13500 stations, so that's a lot of indexes.

Hang on - just tried it and I get a 'parse error at or near "where"', so
I suspect that's yet another reason to upgrade...

I think the one message that's come across loud and clear from this
thread is "Upgrade!", so I guess that's what I'll be doing!

Many thanks to all who have contributed to this thread so far.
I really appreciate al hte help.

Cheers,
Dave.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gaetano Mendola 2003-10-31 12:23:09 Re: ALTER Table
Previous Message Alex 2003-10-31 11:27:11 Error Messages / Codes in DBD / JDBC