Skip to content

Commit c569f83

Browse files
visridhaihalatci
authored andcommitted
Update GUC setting to not crash with ASAN (citusdata#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. (cherry picked from commit 86010de)
1 parent b509d95 commit c569f83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/distributed/shared_library_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2405,8 +2405,8 @@ RegisterCitusConfigVariables(void)
24052405
NULL,
24062406
&SkipAdvisoryLockPermissionChecks,
24072407
false,
2408-
GUC_SUPERUSER_ONLY,
2409-
GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE,
2408+
PGC_SUSET,
2409+
GUC_SUPERUSER_ONLY | GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE,
24102410
NULL, NULL, NULL);
24112411

24122412
DefineCustomBoolVariable(

0 commit comments

Comments
 (0)