Re:BUG #18221: Unexpected Query Result - Mailing list pgsql-bugs

From Sergei Kornilov
Subject Re:BUG #18221: Unexpected Query Result
Date
Msg-id 8521741701611049@gf6ne5m4hitewrno.vla.yp-c.yandex.net
Whole thread Raw
In response to BUG #18221: Unexpected Query Result  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: Re:BUG #18221: Unexpected Query Result
List pgsql-bugs
Hello

Using "distinct on" without specifying an explicit "order by" is unpredictable in itself. I'll quote from the manual:

> Note that the “first row” of each set is unpredictable unless ORDER BY is used to ensure that the desired row appears
first.

Can you reproduce the unexpected behavior with explicit order by clause?

regards, Sergei



pgsql-bugs by date:

Previous
From: Ivan Trofimov
Date:
Subject: Re: BUG #17948: libpq seems to misbehave in a pipelining corner case
Next
From: Jan Březina
Date:
Subject: Re: BUG #18219: libpq does not take into consideration UNICODE define