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  (Robert Haas <robertmhaas@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: BUG #13143: Cannot stop and restart a streaming server with a replication slot
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #12990: Missing pg_multixact/members files (appears to have wrapped, then truncated)