diff --git a/src/gausskernel/process/postmaster/postmaster.cpp b/src/gausskernel/process/postmaster/postmaster.cpp index 0f9ab70b7..7a100c653 100644 --- a/src/gausskernel/process/postmaster/postmaster.cpp +++ b/src/gausskernel/process/postmaster/postmaster.cpp @@ -2314,7 +2314,7 @@ int PostmasterMain(int argc, char* argv[]) checkDataDir(); /* Verify disk space of u_sess->attr.attr_common.Log_directory */ - if (u_sess->attr.attr_common.Log_directory != NULL) { + if (u_sess->attr.attr_common.Log_directory != NULL && is_absolute_path(u_sess->attr.attr_common.Log_directory)) { CheckPgLogDisk(); }