Re: pg_dump error - LOCALIZATION PROBLEM
От | Tom Lane |
---|---|
Тема | Re: pg_dump error - LOCALIZATION PROBLEM |
Дата | |
Msg-id | 19075.1000677459@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: pg_dump error - LOCALIZATION PROBLEM (Peter Eisentraut <peter_e@gmx.net>) |
Ответы |
Re: pg_dump error - LOCALIZATION PROBLEM
|
Список | 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 по дате отправления: