log NOTICE createdb only if EnableUnsupportedFeatureMessages GUC is enabled. (#6151)

pull/6143/head
aykut-bozkurt 2022-08-09 21:21:22 +03:00 committed by GitHub
parent cc694b6bcf
commit 166272963a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 6 deletions

View File

@ -616,6 +616,8 @@ ProcessUtilityInternal(PlannedStmt *pstmt,
/* inform the user about potential caveats */
if (IsA(parsetree, CreatedbStmt))
{
if (EnableUnsupportedFeatureMessages)
{
ereport(NOTICE, (errmsg("Citus partially supports CREATE DATABASE for "
"distributed databases"),
@ -624,6 +626,7 @@ ProcessUtilityInternal(PlannedStmt *pstmt,
errhint("You can manually create a database and its "
"extensions on workers.")));
}
}
else if (IsA(parsetree, CreateRoleStmt) && !EnableCreateRolePropagation)
{
ereport(NOTICE, (errmsg("not propagating CREATE ROLE/USER commands to worker"