Skip to content

Commit 9aa1384

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 2dddf43 commit 9aa1384

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
@@ -2493,8 +2493,8 @@ RegisterCitusConfigVariables(void)
24932493
NULL,
24942494
&SkipAdvisoryLockPermissionChecks,
24952495
false,
2496-
GUC_SUPERUSER_ONLY,
2497-
GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE,
2496+
PGC_SUSET,
2497+
GUC_SUPERUSER_ONLY | GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE,
24982498
NULL, NULL, NULL);
24992499

25002500
DefineCustomBoolVariable(

0 commit comments

Comments
 (0)