Re: [pgAdmin][RM5157] Default sort order at start in view table databy primary key by default

Поиск
Список
Период
Сортировка
От navnath gadakh
Тема Re: [pgAdmin][RM5157] Default sort order at start in view table databy primary key by default
Дата
Msg-id CAOAJCYonAgOSzAM9MVwoic5-5BdzcM27HMXau_pW5g_w8Hh1NQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [pgAdmin][RM5157] Default sort order at start in view table databy primary key by default  (Dave Page <dave.page@enterprisedb.com>)
Ответы Re: [pgAdmin][RM5157] Default sort order at start in view table databy primary key by default  (Khushboo Vashi <khushboo.vashi@enterprisedb.com>)
Список pgadmin-hackers
Hello Hackers,

 Please find the modified patch with an option in Preferences for data sorting by the primary key. Also, the previous  patch was not working with table has no primary key.

Thanks!




On Thu, Apr 16, 2020 at 5:01 PM Dave Page <dave.page@enterprisedb.com> wrote:


On Thu, Apr 16, 2020 at 12:08 PM navnath gadakh <navnath.gadakh@enterprisedb.com> wrote:
Hi Dave/Team,
          This patch is related to the default sort order for the view table data. In pgAdminIII default ordering is by primary key and this is not working in pgAdminIV.
I have attached the patch with the back end code.

Please review it.

Question: There is one suggestion on https://redmine.postgresql.org/issues/5157 about to put a checkbox in the configuration for this behavior.
                  Do I need to implement that really? I yes, Is preferences a good place for that? / Suggestions?

I think we should make this optional, and yes, Preferences is a good place. The reason is that sorting data is not without cost - at the very least it will require use of an index to access what may be the whole table.
 
--
Dave Page
VP & Chief Architect, Database Infrastructure
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake


--
Regards,
Navnath Gadakh
Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Akshay Joshi
Дата:
Сообщение: Re: [pgAdmin][RM4684] : Python encoding issue while saving data incharset other than 'utf-8'
Следующее
От: Aditya Toshniwal
Дата:
Сообщение: [pgAdmin][RM5396] Unable to locate this object in the browser insearch objects