Skip to content

Commit 8865fe0

Browse files
committed
Update comments in new DROP IF EXISTS code; commit message update
DROP IF EXISTS with a missing schema in commit 7e2322d applies not only to tables, but to DROP IF EXISTS with missing schemas for indexes, views, sequences, and foreign tables. Yeah!
1 parent 51cfb87 commit 8865fe0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/catalog/namespace.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ Datum pg_is_other_temp_schema(PG_FUNCTION_ARGS);
217217
* Given a RangeVar describing an existing relation,
218218
* select the proper namespace and look up the relation OID.
219219
*
220-
* If the relation is not found, return InvalidOid if missing_ok = true,
221-
* otherwise raise an error.
220+
* If the schema or relation is not found, return InvalidOid if missing_ok
221+
* = true, otherwise raise an error.
222222
*
223223
* If nowait = true, throw an error if we'd have to wait for a lock.
224224
*
@@ -293,8 +293,8 @@ RangeVarGetRelidExtended(const RangeVar *relation, LOCKMODE lockmode,
293293

294294
namespaceId = LookupExplicitNamespace(relation->schemaname, missing_ok);
295295
/*
296-
* For missing_ok, allow a non-existant schema name
297-
* to throw the error below (namespaceId == InvalidOid).
296+
* For missing_ok, allow a non-existant schema name to
297+
* return InvalidOid.
298298
*/
299299
if (namespaceId != myTempNamespace)
300300
ereport(ERROR,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy