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

Commit9e66a2b

Browse files
Remove unneeded volatile qualifier in fmgr.c.
Currently, the save_nestlevel variable in fmgr_security_definer()is marked volatile. While this may have been necessary when it wasused in a PG_CATCH section (as explained in the comment for PG_TRYin elog.h), it appears to have been unnecessary since commit82a4798, which removed its use in a PG_CATCH section.Author: Julien Rouhaud <rjuju123@gmail.com>Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>Discussion:https://postgr.es/m/Z6xbAgXKY2L-3d5Q%40jrouhaud
1 parentfd602f2 commit9e66a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/utils/fmgr/fmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ fmgr_security_definer(PG_FUNCTION_ARGS)
639639
ListCell*lc1,
640640
*lc2,
641641
*lc3;
642-
volatileintsave_nestlevel;
642+
intsave_nestlevel;
643643
PgStat_FunctionCallUsagefcusage;
644644

645645
if (!fcinfo->flinfo->fn_extra)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp