Re: index only scan taking longer to run - Mailing list pgsql-general

From Michael Lewis
Subject Re: index only scan taking longer to run
Date
Msg-id CAHOFxGoROVhzYfD8_3ifkV8kNQVF9KgHR6qZJRQiH2QThSt98w@mail.gmail.com
Whole thread Raw
In response to index only scan taking longer to run  (Ayub M <hiayub@gmail.com>)
List pgsql-general
Without knowledge of the structure of your data, or even real table/field names to be able to read the query with some sense of what the tables might be like, offering advice is rather difficult. I didn't notice any nodes with huge estimation problems at least.

I will suggest that DISTINCT is often a bad code smell for me with expecting the system to sort data and remove duplicates, when I should have controlled my set through proper joins.

Also, when I see a join condition on the result of a subquery, I question the data structure. re:
bravo_lima = ( SELECT max(bravo_lima) FROM five_lima foxtrot_four ...)

pgsql-general by date:

Previous
From: ERR ORR
Date:
Subject: Re: Oracle vs. PostgreSQL - a comment
Next
From: David Rowley
Date:
Subject: Re: index only scan taking longer to run