Two unrelated issues

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Two unrelated issues
Дата
Msg-id 4B56A24F.7020506@lelarge.info
обсуждение исходный текст
Ответы Re: Two unrelated issues  (Ashesh Vashi <ashesh.vashi@enterprisedb.com>)
Список pgadmin-hackers
Hi,

Yesterday, while working on the patch for the "more complex
user/database default GUC settings" ticket (#102), I stumbled upon two
things.

The first one, quite related to it, is that we have a bug in 1.10 that
prevents us from changing a GUC default value if it has a unit. We don't
add quotes around the value, so the query returns with error (for
example "ALTER DATABASE SET work_mem=10MB", instead of "ALTER DATABASE
SET work_mem='10MB'". Seems quite easy to fix as we just need to add
quotes for each value. I'll commit a fix tonight if nobody objects.

The second one is completely unrelated. I found this line in
pgadmin/ctl/ctlCombobox.cpp:

#ifdef __WXGTK__
    SetEditable(false);
#endif

That would explain why GTK users can't edit a combobox. The one that
really bugs a lot of users is the type combobox in dlgColumn. I wonder
why this specific code has been added in the first place. I found Andres
added it, at revision 3562
(http://code.pgadmin.org/trac/changeset/3562#file27), but I don't find
any reason why. Anyone reminds the issue? Honestly, I didn't try to
remove this code and test it. I'll do tonight, but I would like to get
some ideas on this code.

Thanks.

PS: I should have a complete patch for the "more complex user/database
default GUC settings" new 8.5 feature tonight. I already handle
successfully the database change. I'll need to duplicate it for the user
properties dialog.


--
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com

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

Предыдущее
От: "Erik Rijkers"
Дата:
Сообщение: request: default width of EXPLAIN ANALYZE output
Следующее
От: Ashesh Vashi
Дата:
Сообщение: Re: Two unrelated issues