fix allow_unstable_extensions GUC - make it USERSET (#9563)

fix message wording
This commit is contained in:
Anastasia Lubennikova
2024-10-29 14:25:23 +00:00
committed by GitHub
parent 7a1331eee5
commit 793ad50b7d

View File

@@ -65,8 +65,8 @@ CheckUnstableExtension(
{
ereport(ERROR,
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
errmsg("installing %s is currently prohibited", stmt->extname),
errhint("Set neon.allow_unstable_extensions to true")));
errmsg("%s extension is in beta and may be unstable or introduce backward-incompatible changes.\nWe recommend testing it in a separate, dedicated Neon project.", stmt->extname),
errhint("to proceed with installation, run SET neon.allow_unstable_extensions='true'")));
}
break;
}
@@ -110,13 +110,13 @@ InitUnstableExtensionsSupport(void)
NULL,
&allow_unstable_extensions,
false,
PGC_SUSET,
PGC_USERSET,
0,
NULL, NULL, NULL);
DefineCustomStringVariable(
"neon.unstable_extensions",
"Allow unstable extensions to be installed and used",
"List of unstable extensions",
NULL,
&unstable_extensions,
NULL,