diff --git a/src/backend/utils/adt/dbsize.c b/src/backend/utils/adt/dbsize.c index f4729a7b6b..543a244bf9 100644 --- a/src/backend/utils/adt/dbsize.c +++ b/src/backend/utils/adt/dbsize.c @@ -603,6 +603,9 @@ pg_relation_filepath(PG_FUNCTION_ARGS) default: /* no storage, return NULL */ rnode.relNode = InvalidOid; + /* some compilers generate warnings without these next two lines */ + rnode.dbNode = InvalidOid; + rnode.spcNode = InvalidOid; break; }