mirror of https://github.com/citusdata/citus.git
log NOTICE createdb only if EnableUnsupportedFeatureMessages GUC is enabled. (#6151)
parent
cc694b6bcf
commit
166272963a
|
@ -617,12 +617,15 @@ ProcessUtilityInternal(PlannedStmt *pstmt,
|
||||||
/* inform the user about potential caveats */
|
/* inform the user about potential caveats */
|
||||||
if (IsA(parsetree, CreatedbStmt))
|
if (IsA(parsetree, CreatedbStmt))
|
||||||
{
|
{
|
||||||
ereport(NOTICE, (errmsg("Citus partially supports CREATE DATABASE for "
|
if (EnableUnsupportedFeatureMessages)
|
||||||
"distributed databases"),
|
{
|
||||||
errdetail("Citus does not propagate CREATE DATABASE "
|
ereport(NOTICE, (errmsg("Citus partially supports CREATE DATABASE for "
|
||||||
"command to workers"),
|
"distributed databases"),
|
||||||
errhint("You can manually create a database and its "
|
errdetail("Citus does not propagate CREATE DATABASE "
|
||||||
"extensions on workers.")));
|
"command to workers"),
|
||||||
|
errhint("You can manually create a database and its "
|
||||||
|
"extensions on workers.")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (IsA(parsetree, CreateRoleStmt) && !EnableCreateRolePropagation)
|
else if (IsA(parsetree, CreateRoleStmt) && !EnableCreateRolePropagation)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue