Re: returning the number of rows output by a copy command from a function

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: returning the number of rows output by a copy command from a function
Дата
Msg-id kd8l8t$96r$2@gonzo.reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на Re: returning the number of rows output by a copy command from a function  (Adrian Klaver <adrian.klaver@gmail.com>)
Список pgsql-sql
On 2013-01-16, James Sharrett <jsharrett@tidemark.net> wrote:
> The problem I have is that I get nothing back when the COPY is run inside
> the function other than what I explicitly return from the function so I
> don't have anything to parse.  It's odd that the record count in the
> function is treated differently than from sql query in GET DIAGNOSTIC
> since the format and information in the string (when run outside of the
> function) are exactly the same.

look into "get diagnostics"

-- 
⚂⚃ 100% natural




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

Предыдущее
От: Misa Simic
Дата:
Сообщение: Re: returning the number of rows output by a copy command from a function
Следующее
От: Willy-Bas Loos
Дата:
Сообщение: number of values updated per column