| From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
|---|---|
| To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
| Cc: | francois(dot)perou(at)free(dot)fr, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: SQL compatibility reminder: MySQL vs PostgreSQL |
| Date: | 2010-03-06 09:05:17 |
| Message-ID: | 4B921ACD.9090004@postnewspapers.com.au |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-advocacy pgsql-hackers |
Andrew Dunstan wrote:
> But AIUI that won't be the same as the MySQL behaviour, as documented at
> <http://dev.mysql.com/doc/refman/5.5/en/group-by-hidden-columns.html>:
>
> When using this feature, all rows in each group should have the same
> values for the columns that are ommitted from the |GROUP BY| part.
> The server is free to return any value from the group, so the
> results are indeterminate unless all values are the same.
That sounds a lot like the behavior of `DISTINCT ON (...)' and it'd
actually be really rather useful to have under some circumstances.
Whether it should be written as 'GROUP BY', though, isn't so clear.
--
Craig Ringer
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Josh Berkus | 2010-03-06 19:01:03 | Re: SQL compatibility reminder: MySQL vs PostgreSQL |
| Previous Message | François Pérou | 2010-03-05 21:31:36 | Re: SQL compatibility reminder: MySQL vs PostgreSQL |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kiswono Prayogo | 2010-03-06 11:26:28 | C++ project using postgresql source |
| Previous Message | Josh Berkus | 2010-03-05 23:03:39 | Re: machine-readable pg_controldata? |