Hi,
I have reviewed the patch and below is analysis.
- Behaviour of sorting in data editor before applying the patch is as below:
By default table is sorted by PK/OID in ascending order.
when user select any other column to sort the table, that column gets the second priority for sorting the table like i.e.order by col_pk, col_column1 where col_pk is column having PK and col_column1 is any other ordinary column.
- below is the behaviour I have found after applying the patch:
By default table is sorted by PK/OID in ascending order.
When user selects any other column default sorting is removed and table is getting sorted by newly selected column.
But after this if user wants to sort the table by PK or any other column it will have the same behaviour like it has before applying the patch. i.e. order by col_column1, col_PK where col_column1 and col_PK are same as explained above. It will not sort the table by newly selected column(col_PK) because sorting of older column(col_column1) is still in effect and has the higher priority.
This will also confuse the user.
So according to me current behaviour of sorting of table data in pgadmin is acceptable.
Dave,
Do you have any other thoughts on it?