Hackers,
At the moment schemas used as single-level namespaces.
It's quite convenient in large databases.
But error messages doesn’t contain schema names.
I have done a little patch with schema-qualified relation names in error
messages that produced by foreign key constraints and triggers.
Patch and usage example are attached.
Based on real bug hunting.
Pre-reviewed by Alexander Korotkov.