Re: How to tell if that UPDATE worked?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to tell if that UPDATE worked?
Дата
Msg-id 13221.979257795@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How to tell if that UPDATE worked?  (Jan Wieck <janwieck@Yahoo.com>)
Ответы Re: How to tell if that UPDATE worked?
Список pgsql-general
Jan Wieck <janwieck@Yahoo.com> writes:
>     Do a
>         GET DIAGNOSTICS SELECT PROCESSED INTO <int4_variable>;
>     directly  after  an  INSERT,  UPDATE  or DELETE statement and
>     you'll know how many rows have been hit.
>     Also you can get the OID of an inserted row with
>         GET DIAGNOSTICS SELECT RESULT INTO <int4_variable>;
>     Er - is this another added feature where we're still  lacking
>     documentation?

After a quick grep, I can state that the absolute sum total of the
documentation on this feature is:

HISTORY: New PL/pgSQL GET DIAGNOSTICS statement for SPI value access (Jan)

Better start writing.

            regards, tom lane

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

Предыдущее
От: Jeffery L Post
Дата:
Сообщение: Select * from ( Select etc..)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: exit status 26