Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/backend/access/transam/xlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -5447,17 +5447,17 @@ void SetCaseGucOption(char* path)
if (casemode == NORMAL)
{
SetConfigOption("ivorysql.identifier_case_switch", "normal",
PGC_USERSET, PGC_S_OVERRIDE);
PGC_USERSET, PGC_S_DEFAULT);
}
else if (casemode == INTERCHANGE)
{
SetConfigOption("ivorysql.identifier_case_switch", "interchange",
PGC_USERSET, PGC_S_OVERRIDE);
PGC_USERSET, PGC_S_DEFAULT);
}
else if (casemode == LOWERCASE)
{
SetConfigOption("ivorysql.identifier_case_switch", "lowercase",
PGC_USERSET, PGC_S_OVERRIDE);
PGC_USERSET, PGC_S_DEFAULT);
}
else
ereport(FATAL,
Expand Down
6 changes: 3 additions & 3 deletions src/backend/postmaster/postmaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,16 +773,16 @@ PostmasterMain(int argc, char *argv[])
ExitPostmaster(1);
}

/* set database_style here */
SetCaseGucOption(userDoption);

/*
* Locate the proper configuration files and data directory, and read
* postgresql.conf for the first time.
*/
if (!SelectConfigFiles(userDoption, progname))
ExitPostmaster(2);

/* set database_style here */
SetCaseGucOption(userDoption);

if (output_config_variable != NULL)
{
/*
Expand Down
2 changes: 1 addition & 1 deletion src/backend/utils/misc/ivorysql.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

ivorysql.enable_emptystring_to_NULL = 'on'
shared_preload_libraries = 'liboracle_parser, ivorysql_ora' # (change requires restart)
ivorysql.identifier_case_switch = interchange # set the case conversion mode. range [normal,interchange,lowercase]
#ivorysql.identifier_case_switch = interchange # set the case conversion mode. range [normal,interchange,lowercase]