mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Post-PG 10 beta1 pgindent run
perltidy run not included.
This commit is contained in:
@ -878,8 +878,8 @@ CreateForeignServer(CreateForeignServerStmt *stmt)
|
||||
ownerId = GetUserId();
|
||||
|
||||
/*
|
||||
* Check that there is no other foreign server by this name.
|
||||
* Do nothing if IF NOT EXISTS was enforced.
|
||||
* Check that there is no other foreign server by this name. Do nothing if
|
||||
* IF NOT EXISTS was enforced.
|
||||
*/
|
||||
if (GetForeignServerByName(stmt->servername, true) != NULL)
|
||||
{
|
||||
@ -1171,20 +1171,20 @@ CreateUserMapping(CreateUserMappingStmt *stmt)
|
||||
if (stmt->if_not_exists)
|
||||
{
|
||||
ereport(NOTICE,
|
||||
(errcode(ERRCODE_DUPLICATE_OBJECT),
|
||||
errmsg("user mapping for \"%s\" already exists for server %s, skipping",
|
||||
MappingUserName(useId),
|
||||
stmt->servername)));
|
||||
(errcode(ERRCODE_DUPLICATE_OBJECT),
|
||||
errmsg("user mapping for \"%s\" already exists for server %s, skipping",
|
||||
MappingUserName(useId),
|
||||
stmt->servername)));
|
||||
|
||||
heap_close(rel, RowExclusiveLock);
|
||||
return InvalidObjectAddress;
|
||||
}
|
||||
else
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_DUPLICATE_OBJECT),
|
||||
errmsg("user mapping for \"%s\" already exists for server %s",
|
||||
MappingUserName(useId),
|
||||
stmt->servername)));
|
||||
(errcode(ERRCODE_DUPLICATE_OBJECT),
|
||||
errmsg("user mapping for \"%s\" already exists for server %s",
|
||||
MappingUserName(useId),
|
||||
stmt->servername)));
|
||||
}
|
||||
|
||||
fdw = GetForeignDataWrapper(srv->fdwid);
|
||||
@ -1275,8 +1275,8 @@ AlterUserMapping(AlterUserMappingStmt *stmt)
|
||||
if (!OidIsValid(umId))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_UNDEFINED_OBJECT),
|
||||
errmsg("user mapping for \"%s\" does not exist for the server",
|
||||
MappingUserName(useId))));
|
||||
errmsg("user mapping for \"%s\" does not exist for the server",
|
||||
MappingUserName(useId))));
|
||||
|
||||
user_mapping_ddl_aclcheck(useId, srv->serverid, stmt->servername);
|
||||
|
||||
@ -1390,13 +1390,13 @@ RemoveUserMapping(DropUserMappingStmt *stmt)
|
||||
if (!stmt->missing_ok)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_UNDEFINED_OBJECT),
|
||||
errmsg("user mapping for \"%s\" does not exist for the server",
|
||||
MappingUserName(useId))));
|
||||
errmsg("user mapping for \"%s\" does not exist for the server",
|
||||
MappingUserName(useId))));
|
||||
|
||||
/* IF EXISTS specified, just note it */
|
||||
ereport(NOTICE,
|
||||
(errmsg("user mapping for \"%s\" does not exist for the server, skipping",
|
||||
MappingUserName(useId))));
|
||||
(errmsg("user mapping for \"%s\" does not exist for the server, skipping",
|
||||
MappingUserName(useId))));
|
||||
return InvalidOid;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user