Skip to content

Commit 7b4aa22

Browse files
visridhacolm-mchugh
authored andcommitted
Update GUC setting to not crash with ASAN (#8301)
The GUC configuration for SkipAdvisoryLockPermissionChecks had misconfigured the settings for GUC_SUPERUSER_ONLY for PGC_SUSET - when PostgreSQL running with ASAN, this fails when querying pg_settings due to exceeding the size of the array GucContext_Names. Fix up this GUC declaration to not crash with ASAN.
1 parent 8fc983d commit 7b4aa22

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/backend/distributed/shared_library_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2510,8 +2510,8 @@ RegisterCitusConfigVariables(void)
25102510
NULL,
25112511
&SkipAdvisoryLockPermissionChecks,
25122512
false,
2513-
GUC_SUPERUSER_ONLY,
2514-
GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE,
2513+
PGC_SUSET,
2514+
GUC_SUPERUSER_ONLY | GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE,
25152515
NULL, NULL, NULL);
25162516

25172517
DefineCustomBoolVariable(

0 commit comments

Comments
 (0)