issue修复:参数uppercase_attribute_name开启时pg_dump导出失败修复

This commit is contained in:
teooooozhang
2023-10-26 15:47:46 +08:00
parent 96aca89e0b
commit eb3aa5cd07

View File

@ -826,8 +826,6 @@ int main(int argc, char** argv)
((dbname != NULL) ? dbname : ""), errorMessages);
}
fout->workingVersionNum = GetVersionNumFromServer(fout);
#ifndef ENABLE_MULTIPLE_NODES
/*
* During gs_dump, PQfnumber() is matched according to the lowercase column name.
@ -842,6 +840,8 @@ int main(int argc, char** argv)
}
#endif
fout->workingVersionNum = GetVersionNumFromServer(fout);
if (CheckIfStandby(fout)) {
(void)remove(filename);
exit_horribly(NULL, "%s is not supported on standby or cascade standby\n", progname);