On Sun, Sep 28, 2003 at 03:36:50PM -0400, Alvaro Herrera wrote:
> Now for something completely different:
Oh, there's another thing about the --help-config option. This option
includes an, er, option to display the items that belong to a given
group. So you could say
/tmp/pgsql-es/bin/postgres --help-config -g 'Security'
and the list of parameters that belong to a group that has the word
Security on it would be displayed.
However, the -l option lists the groups with the translated names, and
of course those names do not match on -g specification.
This little patch allows both versions to match, translated and
untranslated.
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Crear es tan dif�cil como ser libre" (Elsa Triolet)
Index: src/backend/utils/misc/help_config.c
===================================================================
RCS file: /home/alvherre/cvs/pgsql-server/src/backend/utils/misc/help_config.c,v
retrieving revision 1.7
diff -c -r1.7 help_config.c
*** src/backend/utils/misc/help_config.c 27 Sep 2003 09:29:31 -0000 1.7
--- src/backend/utils/misc/help_config.c 28 Sep 2003 20:20:33 -0000
***************
*** 283,289 ****
if (groupString != NULL)
{
! if (strstr(config_group_names[structToTest->generic.group],
groupString) != NULL)
{
if (nameString != NULL)
matches = (matches && true);
--- 283,290 ----
if (groupString != NULL)
{
! if (strstr(config_group_names[structToTest->generic.group],
groupString) != NULL
! ||
strstr(gettext(config_group_names[structToTest->generic.group]), groupString) != NULL)
{
if (nameString != NULL)
matches = (matches && true);
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org