options for RAISE statement

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема options for RAISE statement
Дата
Msg-id 162867790804160430r2a51eacfv755a9efa838f1c3e@mail.gmail.com
обсуждение исходный текст
Ответы Re: options for RAISE statement  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: options for RAISE statement  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Hello

this patch adds possibility to set additional options (SQLSTATE,
DETAIL, DETAIL_LOG and HINT) for RAISE statement,

Proposal: http://archives.postgresql.org/pgsql-hackers/2008-04/msg00919.php

I changed keyword from WITH to USING, because I don't would to create
new keyword

RAISE level 'format' [, expression [, ...]] [ USING ( option =
expression [, ... ] ) ];

RAISE EXCEPTION 'Nonexistent ID --> %', user_id
  USING (hint = 'Please, check your user id');

Regards
Pavel Stehule

Вложения

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Improve shutdown during online backup
Следующее
От: kenneth d'souza
Дата:
Сообщение: Re: Reference by output in : \d