objDesc = getObjectDescription(obj);
+ /* An object being dropped concurrently doesn't need to be reported */
+ if (objDesc == NULL)
+ continue;
+
/*
* If, at any stage of the recursive search, we reached the object via
* an AUTO, INTERNAL, or EXTENSION dependency, then it's okay to
{
char *otherDesc = getObjectDescription(&extra->dependee);
- if (numReportedClient < MAX_REPORTED_DEPS)
+ if (otherDesc)
{
+ if (numReportedClient < MAX_REPORTED_DEPS)
+ {
+ /* separate entries with a newline */
+ if (clientdetail.len != 0)
+ appendStringInfoChar(&clientdetail, '\n');
+ appendStringInfo(&clientdetail, _("%s depends on %s"),
+ objDesc, otherDesc);
+ numReportedClient++;
+ }
+ else
+ numNotReportedClient++;
/* separate entries with a newline */
- if (clientdetail.len != 0)
- appendStringInfoChar(&clientdetail, '\n');
- appendStringInfo(&clientdetail, _("%s depends on %s"),
+ if (logdetail.len != 0)
+ appendStringInfoChar(&logdetail, '\n');
+ appendStringInfo(&logdetail, _("%s depends on %s"),
objDesc, otherDesc);
- numReportedClient++;
+ pfree(otherDesc);
}
else
numNotReportedClient++;
- /* separate entries with a newline */
- if (logdetail.len != 0)
- appendStringInfoChar(&logdetail, '\n');
- appendStringInfo(&logdetail, _("%s depends on %s"),
- objDesc, otherDesc);
- pfree(otherDesc);
ok = false;
}
else