diff --git a/src/gausskernel/process/tcop/postgres.cpp b/src/gausskernel/process/tcop/postgres.cpp index aa8aba9e2..210919526 100755 --- a/src/gausskernel/process/tcop/postgres.cpp +++ b/src/gausskernel/process/tcop/postgres.cpp @@ -6556,6 +6556,7 @@ void process_postgres_switches(int argc, char* argv[], GucContext ctx, const cha /* Treat it as a Datanode for initdb to work properly */ g_instance.role = VDATANODE; isSingleMode = true; + useLocalXid = true; } #endif