Re: PL/PgSQL STRICT

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: PL/PgSQL STRICT
Дата
Msg-id 50D48511.8020001@joh.to
обсуждение исходный текст
Ответ на Re: PL/PgSQL STRICT  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: PL/PgSQL STRICT
Re: PL/PgSQL STRICT
Список pgsql-hackers
On 12/21/12 4:39 PM, Tom Lane wrote:
> What is the use-case for this?

Currently, the way to do this would be something like:

DECLARE  _ok bool;
BEGIN
UPDATE foo .. RETURNING TRUE INTO STRICT _ok;

We have a lot of code like this, and I bet others do as well.

> Won't this result in the word STRICT
> becoming effectively reserved in contexts where it currently is not?

It will, which probably is not ideal if it can be avoided.  I also 
considered syntax like  INTO STRICT NULL,  but that felt a bit ugly.  It 
would be great if someone had any smart ideas about the syntax.


Regards,
Marko Tiikkaja



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Review of Row Level Security
Следующее
От: Marko Tiikkaja
Дата:
Сообщение: Re: PL/PgSQL STRICT