Re: Wish: remove ancient constructs from Postgres

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: nikolay(at)samokhvalov(dot)com
Cc: pgsql-general(at)postgresql(dot)org, Bruno Wolff III <bruno(at)wolff(dot)to>
Subject: Re: Wish: remove ancient constructs from Postgres
Date: 2006-02-27 15:48:36
Message-ID: 20060227074356.C37857@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Mon, 27 Feb 2006, Nikolay Samokhvalov wrote:

> On 2/27/06, Bruno Wolff III <bruno(at)wolff(dot)to> wrote:
> The alternatives to distinct on are painful. They are generally both harder
> to read and run slower.
>

>'DISTINCT ON' is evil constuction, because (w/o any 'ORDER BY') it
>produses unpredictable result, as 'ORDER BY random()' does.

And so does UNION in the standard under some circumstances (look at
anywhere in the spec that a query expression is possibly
non-deterministic), so I think that's a weak argument.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nikolay Samokhvalov 2006-02-27 15:59:21 Re: Wish: remove ancient constructs from Postgres
Previous Message Nikolay Samokhvalov 2006-02-27 15:34:16 Re: Wish: remove ancient constructs from Postgres