diff --git a/src/bin/pg_config/pg_config.cpp b/src/bin/pg_config/pg_config.cpp index a9ad371e0..fab1b539f 100644 --- a/src/bin/pg_config/pg_config.cpp +++ b/src/bin/pg_config/pg_config.cpp @@ -292,9 +292,11 @@ static void show_version(int alls) if (alls) { printf("VERSION = "); } -#ifdef ENABLE_MULTIPLE_NODES printf("PostgreSQL 9.2.4\n"); -#else +#ifdef ENABLE_MULTIPLE_NODES + if (alls) { + printf("OPENGAUSS_VERSION = "); + } printf("openGauss 3.0.0\n"); #endif }