Re: Questions about writing functions...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Questions about writing functions...
Дата
Msg-id 22896.987718247@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Questions about writing functions...  ("Bob Whitehouse" <bwhitehouse@geeknest.com>)
Список pgsql-novice
"Bob Whitehouse" <bwhitehouse@geeknest.com> writes:
> If I write a function that deletes a record from a table, how do I access
> the output from the delete operation to see if it completed successfully?

In 7.1 you could look at the ROW_COUNT statistic field to see how many
rows were deleted.  I don't think pre-7.1 plpgsql has a way to do that.

            regards, tom lane

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

Предыдущее
От: "Bob Whitehouse"
Дата:
Сообщение: Questions about functions...
Следующее
От: Shay Moreno
Дата:
Сообщение: Re: Questions about writing functions...