pgsql: Remove unneeded volatile qualifier in fmgr.c.

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove unneeded volatile qualifier in fmgr.c.
Date: 2025-02-12 21:46:40
Message-ID: E1tiKZ6-006nix-1d@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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 was
used in a PG_CATCH section (as explained in the comment for PG_TRY
in elog.h), it appears to have been unnecessary since commit
82a47982f3, which removed its use in a PG_CATCH section.

Author: Julien Rouhaud <rjuju123(at)gmail(dot)com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Discussion: https://postgr.es/m/Z6xbAgXKY2L-3d5Q%40jrouhaud

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9e66a2b7841a5c1f929103c82c73244d3f5f3416

Modified Files
--------------
src/backend/utils/fmgr/fmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Masahiko Sawada 2025-02-13 00:32:37 pgsql: Skip logical decoding of already-aborted transactions.
Previous Message Tom Lane 2025-02-12 21:07:50 pgsql: Fix minor memory leaks in pg_dump.