Re: BUG #18665: Breaking a foreign constraint: the error message may be more detailed

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #18665: Breaking a foreign constraint: the error message may be more detailed
Дата
Msg-id 1568448.1729526787@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #18665: Breaking a foreign constraint: the error message may be more detailed  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.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



В списке pgsql-bugs по дате отправления: