Taiki Yamaguchi <yamaguchi(at)sraoss(dot)co(dot)jp> writes:> yamaguti=# select distinct max(j) from t1;> ERROR: could not find pathkey item to sort
Fixed in HEAD and 8.3. Thanks for the report!
regards, tom lane