Re: How to find out programmatically whether a query on a view will use an index?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Martin Schäfer <Martin(dot)Schaefer(at)cadcorp(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to find out programmatically whether a query on a view will use an index?
Date: 2005-01-25 17:40:23
Message-ID: 20050125174023.GA13418@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, Jan 24, 2005 at 16:34:09 -0000,
Martin Schäfer <Martin(dot)Schaefer(at)cadcorp(dot)com> wrote:
>
> I'm using the PostGIS spatial extension. Some of my spatial queries (like
> live zooming and panning) should only be performed when the column
> containing the spatial data is spatially indexed, otherwise the first query
> takes almost forever and users will just kill the application out of
> frustration.

If the real problem is long running queries, maybe using a statement timeout
will solve your problem?

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Joel Fradkin 2005-01-25 17:54:25 Re: datediff is there something like it?
Previous Message zeus 2005-01-25 17:32:33 Re: "How do I ..." SQL question