Re: Assertions in PL/PgSQL

Поиск
Список
Период
Сортировка
Искать
От
Marko Tiikkaja
Тема
Re: Assertions in PL/PgSQL
Дата
Msg-id
524000C0.7070204@joh.to
Ответ на
Список
Дерево обсуждения
Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Peter Eisentraut <peter_e@gmx.net>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Peter Eisentraut <peter_e@gmx.net>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Jaime Casanova <jaime@2ndquadrant.com>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Jaime Casanova <jaime@2ndquadrant.com>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Robert Haas <robertmhaas@gmail.com>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Robert Haas <robertmhaas@gmail.com>
Re: Assertions in PL/PgSQL Hannu Krosing <hannu@2ndQuadrant.com>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Jim Nasby <jim@nasby.net>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Jim Nasby <jim@nasby.net>
Re: Assertions in PL/PgSQL Jaime Casanova <jaime@2ndquadrant.com>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Amit Khandekar <amit.khandekar@enterprisedb.com>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Jaime Casanova <jaime@2ndquadrant.com>
Re: Assertions in PL/PgSQL Jaime Casanova <jaime@2ndquadrant.com>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Andres Freund <andres@2ndquadrant.com>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Amit Khandekar <amit.khandekar@enterprisedb.com>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Marko Tiikkaja <marko@joh.to>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Amit Khandekar <amit.khandekar@enterprisedb.com>
Re: Assertions in PL/PgSQL Robert Haas <robertmhaas@gmail.com>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Peter Eisentraut <peter_e@gmx.net>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Tom Lane <tgl@sss.pgh.pa.us>
Re: Assertions in PL/PgSQL Robert Haas <robertmhaas@gmail.com>
Re: Assertions in PL/PgSQL Peter Eisentraut <peter_e@gmx.net>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Robert Haas <robertmhaas@gmail.com>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Pavel Stehule <pavel.stehule@gmail.com>
Re: Assertions in PL/PgSQL Robert Haas <robertmhaas@gmail.com>
Re: Assertions in PL/PgSQL Jaime Casanova <jaime@2ndquadrant.com>
On 9/23/13 6:40 AM, Pavel Stehule wrote:
> After days I am thinking so it can be a good solution
>
> syntax - enhanced current RAISE
>
> RAISE ASSERT WHEN boolean expression
>
> RAISE ASSERT 'some message' WHEN expression

It looks like I'm losing this battle, but this syntax isn't too bad.

> and we can have a GUC that controls asserts per database - possibly
> overwritten by plpgsql option - similar to current plpgsql options
>
> assert_level = [*ignore*, notice, warning, error]

This sounds like a decent enhancement.

> p.s. clause WHEN can be used for other exception level - so it can be a
> interesting shortcut for other use cases.

This idea is good, I like it.


I could prepare a patch for this, unless someone else wants to?



Regards,
Marko Tiikkaja


В списке pgsql-hackers по дате отправления
От: Andres Freund
Дата:
От: Pavel Stehule
Дата:
Сообщение: Re: Assertions in PL/PgSQL
FAQ