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

Commit024515c

Browse files
committed
In event triggers, use "pg_temp" only for our own temp schema.
pg_event_trigger_ddl_commands used "pg_temp" to refer to anytemp schema, not only that of the current backend. This seemslike overreach. It's somewhat unlikely that DDL commands wouldrefer to temp objects of other sessions to begin with, but if theydo, "pg_temp" would be a most misleading way to display the action.While this seems like a bug, it's not quite out of the realm ofpossibility that somebody out there is expecting the currentbehavior. Hence, fix in HEAD, but don't back-patch.Discussion:https://postgr.es/m/CAAJ_b97W=QaGmag9AhWNbmx3uEYsNkXWL+OVW1_E1D3BtgWvtw@mail.gmail.com
1 parent48c5c90 commit024515c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎src/backend/commands/event_trigger.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,11 +1982,7 @@ pg_event_trigger_ddl_commands(PG_FUNCTION_ARGS)
19821982
elog(ERROR,
19831983
"invalid null namespace in object %u/%u/%d",
19841984
addr.classId,addr.objectId,addr.objectSubId);
1985-
/* XXX not quite get_namespace_name_or_temp */
1986-
if (isAnyTempNamespace(schema_oid))
1987-
schema=pstrdup("pg_temp");
1988-
else
1989-
schema=get_namespace_name(schema_oid);
1985+
schema=get_namespace_name_or_temp(schema_oid);
19901986

19911987
table_close(catalog,AccessShareLock);
19921988
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp