Re: proposal: plpgsql - Assert statement

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: proposal: plpgsql - Assert statement
Дата
Msg-id 5419DA51.3080308@gmx.net
обсуждение исходный текст
Ответ на Re: proposal: plpgsql - Assert statement  (Jan Wieck <jan@wi3ck.info>)
Ответы Re: proposal: plpgsql - Assert statement
Re: proposal: plpgsql - Assert statement
Список pgsql-hackers
On 9/14/14 2:49 PM, Jan Wieck wrote:
> I don't think it is even a good idea to implement assertions that can
> query arbitrary data.

In a normal programming language, an assertion is usually a static fault
in your program.  If the assertion ever fails, you fix your program and
then it hopefully never happens again.

Assertion that query the state of the database or result row counts are
pushing that concept quite a bit.  Those are not assertions, those are
just plain old error handling.




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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: proposal: plpgsql - Assert statement
Следующее
От: Marko Tiikkaja
Дата:
Сообщение: Re: proposal: plpgsql - Assert statement