On Wed, Nov 4, 2009 at 3:17 AM, Emmanuel Cecchet <manu(at)asterdata(dot)com> wrote:
> For example, this query returns an error (but I guess it shouldn't):
>
> SELECT DISTINCT ON ('1'::varchar, '1'::varchar) a FROM (SELECT 1 AS a) AS a
> ORDER BY '1'::varchar, '1'::varchar, '2'::varchar;
This sounds familiar. What version of Postgres are you testing this on?
--
greg