mirror of https://github.com/citusdata/citus.git
log NOTICE createdb only if EnableUnsupportedFeatureMessages GUC is enabled. (#6151)
parent
cc694b6bcf
commit
166272963a
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue