Re: proposal: plpgsql - Assert statement

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: proposal: plpgsql - Assert statement
Дата
Msg-id CAFj8pRC5zg8=EVVS1FFY4bC3gdEueW9U7O_TURtjTehmJewrhw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: proposal: plpgsql - Assert statement  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers


2014-11-17 23:58 GMT+01:00 Simon Riggs <simon@2ndquadrant.com>:
>> Great, looks good to me, marking as ready for committer.

What is wrong with using IF ?

It significantly increase code' length .. and decrease readability when you intensive use a pattern IF THEN RAISE END IF - when you check every parameter, when you check every result.

RAISE ... WHEN ... is shorter with full power of RAISE statement and possibility for future enhancing.

Regards

Pavel
 

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

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

Предыдущее
От: Rajeev rastogi
Дата:
Сообщение: Re: Index scan optimization
Следующее
От: Kouhei Kaigai
Дата:
Сообщение: Re: using custom scan nodes to prototype parallel sequential scan