diff --git a/src/backend/catalog/namespace.c b/src/backend/catalog/namespace.c
index 6964feedc2ee8d4e4fb9ddec0d74f4b95137964d..07a8761709e5c337c9319505e235d5659280adaa 100644
--- a/src/backend/catalog/namespace.c
+++ b/src/backend/catalog/namespace.c
@@ -217,8 +217,8 @@ Datum		pg_is_other_temp_schema(PG_FUNCTION_ARGS);
  *		Given a RangeVar describing an existing relation,
  *		select the proper namespace and look up the relation OID.
  *
- * If the relation is not found, return InvalidOid if missing_ok = true,
- * otherwise raise an error.
+ * If the schema or relation is not found, return InvalidOid if missing_ok
+ * = true, otherwise raise an error.
  *
  * If nowait = true, throw an error if we'd have to wait for a lock.
  *
@@ -293,8 +293,8 @@ RangeVarGetRelidExtended(const RangeVar *relation, LOCKMODE lockmode,
 
 					namespaceId = LookupExplicitNamespace(relation->schemaname, missing_ok);
 					/*
-					 *	For missing_ok, allow a non-existant schema name
-					 *	to throw the error below (namespaceId == InvalidOid).
+					 *	For missing_ok, allow a non-existant schema name to
+					 *	return InvalidOid.
 					 */
 					if (namespaceId != myTempNamespace)
 						ereport(ERROR,