Re: Query performance issue - Mailing list pgsql-performance

From Jayadevan
Subject Re: Query performance issue
Date
Msg-id 1315159591749-4768047.post@n5.nabble.com
Whole thread Raw
In response to Re: Query performance issue  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Query performance issue
List pgsql-performance
I don't think I understood all that. Anyway, is there a way to fix this -
either by rewriting the query or by creating an index? The output does match
what I am expecting.  It does take more than 10 times the time taken by
Oracle for the same result, with PostgreSQL taking more than 20 minutes. I
am sort of stuck on this since this query does get executed often. By the
way, changing the filter from FAMNAM to GIVENNAME fetches results in 90
seconds. Probably there is a difference in the cardinality of values in
these 2 columns.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Query-performance-issue-tp4753453p4768047.html
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Query performance issue
Next
From: "Tomas Vondra"
Date:
Subject: Re: Query performance issue