Re: pg_dump error - LOCALIZATION PROBLEM - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_dump error - LOCALIZATION PROBLEM
Date
Msg-id 19075.1000677459@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_dump error - LOCALIZATION PROBLEM  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: pg_dump error - LOCALIZATION PROBLEM
List pgsql-general
Peter Eisentraut <peter_e@gmx.net> writes:
> Untested, but try this:

> Edit src/backend/commands/variable.c, look for the function
> parse_XactIsoLevel().  Change the code that looks like this:

>         if (strcasecmp(value, "SERIALIZABLE") == 0)
>                 XactIsoLevel = XACT_SERIALIZABLE;
>         else if (strcasecmp(value, "COMMITTED") == 0)
>                 XactIsoLevel = XACT_READ_COMMITTED;

> into:

>         if (strcmp(value, "serializable") == 0)
>                 XactIsoLevel = XACT_SERIALIZABLE;
>         else if (strcmp(value, "committed") == 0)
>                 XactIsoLevel = XACT_READ_COMMITTED;

Hmm.  Given that we expect the lexer to have downcased any unquoted
words, this seems like a workable solution --- where else are we using
strcasecmp() unnecessarily?

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Questions about tuning on FreeBSD...
Next
From: Bolt Thrower
Date:
Subject: sequences: log_cnt?