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