Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> At the least this sounds like an unfriendly error message:
> postgres=# select 1 order by 1;
> ERROR: could not find pathkey item to sort
Definitely a bug, since it works in all existing releases.
Thanks for the report.
regards, tom lane