Ok, I think I will do the sorting in perl since the total number of rows can be sucked into mem in my application... Dirk
pgsql-sql by date:
Соглашаюсь с условиями обработки персональных данных