I failed to realize that server names reported in the object args array
would get quoted, which is wrong; remove that, making sure that it's
only quoted in the string-formatted identity.
This bug was introduced by my commit
cf34e373, which was backpatched,
but since object name/args arrays are new in commit
a676201490c8, there
is no need to backpatch this any further.
ReleaseSysCache(tup);
if (OidIsValid(useid))
- usename = quote_identifier(GetUserNameFromId(useid));
+ usename = GetUserNameFromId(useid);
else
usename = "public";
*objargs = list_make1(pstrdup(srv->servername));
}
- appendStringInfo(&buffer, "%s on server %s", usename,
+ appendStringInfo(&buffer, "%s on server %s",
+ quote_identifier(usename),
srv->servername);
break;
}