--
CREATE EXTENSION earthdistance; -- fail, must install cube first
ERROR: required extension "cube" is not installed
-HINT: Use CREATE EXTENSION CASCADE to install required extensions too.
+HINT: Use CREATE EXTENSION ... CASCADE to install required extensions too.
CREATE EXTENSION cube;
CREATE EXTENSION earthdistance;
--
(errcode(ERRCODE_UNDEFINED_OBJECT),
errmsg("required extension \"%s\" is not installed",
curreq),
- errhint("Use CREATE EXTENSION CASCADE to install required extensions too.")));
+ errhint("Use CREATE EXTENSION ... CASCADE to install required extensions too.")));
}
reqschema = get_extension_schema(reqext);
if (pertrans->transfn.fn_strict && aggtranstype == INTERNALOID)
ereport(ERROR,
(errcode(ERRCODE_INVALID_FUNCTION_DEFINITION),
- errmsg("combine function for aggregate %u must to be declared as strict",
+ errmsg("combine function for aggregate %u must be declared as STRICT",
aggref->aggfnoid)));
}
else
if (detail_msg)
ereport(ERROR,
(errcode(ERRCODE_RESERVED_NAME),
- errmsg("role \"%s\" is reserved",
+ errmsg("role name \"%s\" is reserved",
role->rolename),
errdetail("%s", detail_msg)));
else
ereport(ERROR,
(errcode(ERRCODE_RESERVED_NAME),
- errmsg("role \"%s\" is reserved",
+ errmsg("role name \"%s\" is reserved",
role->rolename)));
}
}
-- test some errors
CREATE EXTENSION test_ext1;
ERROR: required extension "test_ext2" is not installed
-HINT: Use CREATE EXTENSION CASCADE to install required extensions too.
+HINT: Use CREATE EXTENSION ... CASCADE to install required extensions too.
CREATE EXTENSION test_ext1 SCHEMA test_ext1;
ERROR: schema "test_ext1" does not exist
CREATE EXTENSION test_ext1 SCHEMA test_ext;