mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Post-PG 10 beta1 pgindent run
perltidy run not included.
This commit is contained in:
@ -102,7 +102,7 @@ RemoveObjects(DropStmt *stmt)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
|
||||
errmsg("\"%s\" is an aggregate function",
|
||||
NameListToString(castNode(ObjectWithArgs, object)->objname)),
|
||||
NameListToString(castNode(ObjectWithArgs, object)->objname)),
|
||||
errhint("Use DROP AGGREGATE to drop aggregate functions.")));
|
||||
|
||||
ReleaseSysCache(tup);
|
||||
@ -145,7 +145,7 @@ owningrel_does_not_exist_skipping(List *object, const char **msg, char **name)
|
||||
RangeVar *parent_rel;
|
||||
|
||||
parent_object = list_truncate(list_copy(object),
|
||||
list_length(object) - 1);
|
||||
list_length(object) - 1);
|
||||
|
||||
if (schema_does_not_exist_skipping(parent_object, msg, name))
|
||||
return true;
|
||||
@ -328,6 +328,7 @@ does_not_exist_skipping(ObjectType objtype, Node *object)
|
||||
case OBJECT_FUNCTION:
|
||||
{
|
||||
ObjectWithArgs *owa = castNode(ObjectWithArgs, object);
|
||||
|
||||
if (!schema_does_not_exist_skipping(owa->objname, &msg, &name) &&
|
||||
!type_in_list_does_not_exist_skipping(owa->objargs, &msg, &name))
|
||||
{
|
||||
@ -340,6 +341,7 @@ does_not_exist_skipping(ObjectType objtype, Node *object)
|
||||
case OBJECT_AGGREGATE:
|
||||
{
|
||||
ObjectWithArgs *owa = castNode(ObjectWithArgs, object);
|
||||
|
||||
if (!schema_does_not_exist_skipping(owa->objname, &msg, &name) &&
|
||||
!type_in_list_does_not_exist_skipping(owa->objargs, &msg, &name))
|
||||
{
|
||||
@ -352,6 +354,7 @@ does_not_exist_skipping(ObjectType objtype, Node *object)
|
||||
case OBJECT_OPERATOR:
|
||||
{
|
||||
ObjectWithArgs *owa = castNode(ObjectWithArgs, object);
|
||||
|
||||
if (!schema_does_not_exist_skipping(owa->objname, &msg, &name) &&
|
||||
!type_in_list_does_not_exist_skipping(owa->objargs, &msg, &name))
|
||||
{
|
||||
@ -390,7 +393,7 @@ does_not_exist_skipping(ObjectType objtype, Node *object)
|
||||
msg = gettext_noop("trigger \"%s\" for relation \"%s\" does not exist, skipping");
|
||||
name = strVal(llast(castNode(List, object)));
|
||||
args = NameListToString(list_truncate(list_copy(castNode(List, object)),
|
||||
list_length(castNode(List, object)) - 1));
|
||||
list_length(castNode(List, object)) - 1));
|
||||
}
|
||||
break;
|
||||
case OBJECT_POLICY:
|
||||
@ -399,7 +402,7 @@ does_not_exist_skipping(ObjectType objtype, Node *object)
|
||||
msg = gettext_noop("policy \"%s\" for relation \"%s\" does not exist, skipping");
|
||||
name = strVal(llast(castNode(List, object)));
|
||||
args = NameListToString(list_truncate(list_copy(castNode(List, object)),
|
||||
list_length(castNode(List, object)) - 1));
|
||||
list_length(castNode(List, object)) - 1));
|
||||
}
|
||||
break;
|
||||
case OBJECT_EVENT_TRIGGER:
|
||||
@ -412,7 +415,7 @@ does_not_exist_skipping(ObjectType objtype, Node *object)
|
||||
msg = gettext_noop("rule \"%s\" for relation \"%s\" does not exist, skipping");
|
||||
name = strVal(llast(castNode(List, object)));
|
||||
args = NameListToString(list_truncate(list_copy(castNode(List, object)),
|
||||
list_length(castNode(List, object)) - 1));
|
||||
list_length(castNode(List, object)) - 1));
|
||||
}
|
||||
break;
|
||||
case OBJECT_FDW:
|
||||
|
Reference in New Issue
Block a user