diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h index 8d9f7006c3..1bbbc1da9c 100644 --- a/src/include/utils/rel.h +++ b/src/include/utils/rel.h @@ -505,6 +505,7 @@ typedef struct ViewOptions (RELKIND_HAS_STORAGE((relation)->rd_rel->relkind) && \ ((relation)->rd_rel->relfilenode == InvalidOid)) +#ifndef FRONTEND /* * RelationGetSmgr * Returns smgr file handle for a relation, opening it if needed. @@ -525,6 +526,7 @@ RelationGetSmgr(Relation rel) smgrsetowner(&(rel->rd_smgr), smgropen(rel->rd_node, rel->rd_backend)); return rel->rd_smgr; } +#endif /* !FRONTEND */ /* * RelationOpenSmgr