Distinct + Limit - Mailing list pgsql-performance

From Francois Deliege
Subject Distinct + Limit
Date
Msg-id 5833589.541.1332880671745.JavaMail.geo-discussion-forums@pbbnv8
Whole thread Raw
List pgsql-performance
Hi group,

I have the following table with millions of rows

CREATE TABLE table1
(
  col1 text,
col1 text,
  doc text
)

select col1 from table1 group by col1 limit 2;
select distinct on (col1) col1 from table1 limit 2;


pgsql-performance by date:

Previous
From: Dave Crooke
Date:
Subject: Re: Linux machine aggressively clearing cache
Next
From: Ants Aasma
Date:
Subject: Re: Distinct + Limit