"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> writes:
> select distinct 'value';
> ERROR: Unable to identify an ordering operator '<' for type '"unknown"'
> Use an explicit ordering operator or modify the query
This is accepted in 7.4 and later. You are evidently using something
older.
regards, tom lane