Re: Evaluation of secondary sort key. - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Evaluation of secondary sort key.
Date
Msg-id 1303164596-sup-3364@alvh.no-ip.org
Whole thread Raw
In response to Re: Evaluation of secondary sort key.  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Excerpts from Greg Stark's message of lun abr 18 15:47:03 -0300 2011:

> A lot of SQL queries end up being written with GROUP BY primary_key,
> other_column, other_column, other_column just to get those other
> columns to be queryable. If we implemented the SQL standard
> "dependent" columns feature this would be unnecessary but we don't and
> even if we did people would still build schemas and queries that
> defeat the optimization.

Actually we do have that in 9.1.  It's a bit more restrictive than
really required (there are some more cases we could handle), but AFAIR
at least the primary key is handled now.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Formatting Curmudgeons WAS: MMAP Buffers
Next
From: Andrew Dunstan
Date:
Subject: Re: Formatting Curmudgeons WAS: MMAP Buffers