Re: Assistance with Query Optimisation? - Mailing list pgsql-general

From Shaun Johnston
Subject Re: Assistance with Query Optimisation?
Date
Msg-id 45E763BA.3060001@benon.com
Whole thread Raw
In response to Re: Assistance with Query Optimisation?  ("Isak Hansen" <isak.hansen@gmail.com>)
List pgsql-general

Isak Hansen wrote:
> First thing I notice is that your query plans seem to only use one index.
>
> Postgres should be able to combine the timestamp and account_id
> indexes in that first query, if the optimizer thought there was a
> point in doing so?
>
Absolutely brilliant - this solved my issue, brought the query time down
to about 2 seconds initially, then about 500 milliseconds thereafter.
Thank you very much for this tip.


pgsql-general by date:

Previous
From: "Merlin Moncure"
Date:
Subject: is pg_standby over nfs expected to work?
Next
From: "Frank Church"
Date:
Subject: rpm containing pgdump