Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8865fe0

Browse files
committed
Update comments in new DROP IF EXISTS code; commit message update
DROP IF EXISTS with a missing schema in commit7e2322d applies not only to tables, butto DROP IF EXISTS with missing schemas for indexes, views, sequences,and foreign tables. Yeah!
1 parent51cfb87 commit8865fe0

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 @@ Datumpg_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 theschema orrelation 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+
*returnInvalidOid.
298298
*/
299299
if (namespaceId!=myTempNamespace)
300300
ereport(ERROR,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp