Re: pg_get_constraintdef failing with cache lookup error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_get_constraintdef failing with cache lookup error
Дата
Msg-id 1189.1430147778@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_get_constraintdef failing with cache lookup error  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: pg_get_constraintdef failing with cache lookup error
Список pgsql-bugs
Michael Paquier <michael.paquier@gmail.com> writes:
> pg_get_constraintdef() fails rather easily:
> =# select pg_get_constraintdef(1);
> ERROR:  cache lookup failed for constraint 1

It's expected that the caller will supply a valid pg_constraint OID.
I don't think it's necessary to go out of our way to throw a friendlier
error message if the OID isn't found.

            regards, tom lane

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