PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> A query breaking a foreign key triggers a "cannot truncate a table
> referenced in a foreign key constraint" error. In the DETAIL section of
> this message the child table name isn't fully qualified: it omits its schema
> name.
By and large, we don't include objects' schema names in error messages
ever. I'm not sure why this specific one should break that habit.
If you want to (re)start a conversation about whether more error
messages should include schema names, you can ... but a bug report
is not the mechanism for doing that. This is not a bug, it's
acting as designed and in keeping with a lot of other code.
regards, tom lane