diff --git a/src/bin/pg_basebackup/pg_basebackup.cpp b/src/bin/pg_basebackup/pg_basebackup.cpp index c54fefb7a..0376b9d0b 100644 --- a/src/bin/pg_basebackup/pg_basebackup.cpp +++ b/src/bin/pg_basebackup/pg_basebackup.cpp @@ -200,7 +200,7 @@ static void TablespaceValueCheck(TablespaceListCell* cell, const char* arg) /* tablespace directory does not allow specifying under database directory */ char* tableSpaceChar = strstr(cell->new_dir, basedir); if (tableSpaceChar != nullptr) { - pg_log(PG_WARNING, _(" tablespace directory does not allow specifying under database directory")); + pg_log(PG_FATAL, _(" tablespace directory does not allow specifying under database directory")); exit(1); } }