Re: Grabbing Newest Records From Duplicates - Mailing list pgsql-sql

From Tom Lane
Subject Re: Grabbing Newest Records From Duplicates
Date
Msg-id 7757.1174061861@sss.pgh.pa.us
Whole thread Raw
In response to Re: Grabbing Newest Records From Duplicates  ("Travis Whitton" <tinymountain@gmail.com>)
List pgsql-sql
"Travis Whitton" <tinymountain@gmail.com> writes:
> One last question, using the "weather report" example, is it going to
> improve performance for the DISTINCT ON query to add an index to the
> location and time columns?

A two-column index matching the ORDER BY that you use might help,
or then again might not --- for full-table scans it's often faster
to sort than to try to use an index.
        regards, tom lane


pgsql-sql by date:

Previous
From: Gerardo Herzig
Date:
Subject: log file permissions?
Next
From: Steve Crawford
Date:
Subject: Re: log file permissions?