提交 8865fe0a 编写于 作者: B Bruce Momjian

Update comments in new DROP IF EXISTS code; commit message update

DROP IF EXISTS with a missing schema in commit
7e2322df applies not only to tables, but
to DROP IF EXISTS with missing schemas for indexes, views, sequences,
and foreign tables.  Yeah!
上级 51cfb87a
...@@ -217,8 +217,8 @@ Datum pg_is_other_temp_schema(PG_FUNCTION_ARGS); ...@@ -217,8 +217,8 @@ Datum pg_is_other_temp_schema(PG_FUNCTION_ARGS);
* Given a RangeVar describing an existing relation, * Given a RangeVar describing an existing relation,
* select the proper namespace and look up the relation OID. * select the proper namespace and look up the relation OID.
* *
* If the relation is not found, return InvalidOid if missing_ok = true, * If the schema or relation is not found, return InvalidOid if missing_ok
* otherwise raise an error. * = true, otherwise raise an error.
* *
* If nowait = true, throw an error if we'd have to wait for a lock. * 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, ...@@ -293,8 +293,8 @@ RangeVarGetRelidExtended(const RangeVar *relation, LOCKMODE lockmode,
namespaceId = LookupExplicitNamespace(relation->schemaname, missing_ok); namespaceId = LookupExplicitNamespace(relation->schemaname, missing_ok);
/* /*
* For missing_ok, allow a non-existant schema name * For missing_ok, allow a non-existant schema name to
* to throw the error below (namespaceId == InvalidOid). * return InvalidOid.
*/ */
if (namespaceId != myTempNamespace) if (namespaceId != myTempNamespace)
ereport(ERROR, ereport(ERROR,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册