Re: returning the number of rows output by a copy command from a function - Mailing list pgsql-sql

From Jasen Betts
Subject Re: returning the number of rows output by a copy command from a function
Date
Msg-id kd8l8t$96r$2@gonzo.reversiblemaps.ath.cx
Whole thread Raw
In response to Re: returning the number of rows output by a copy command from a function  (Adrian Klaver <adrian.klaver@gmail.com>)
List 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 by date:

Previous
From: Misa Simic
Date:
Subject: Re: returning the number of rows output by a copy command from a function
Next
From: Willy-Bas Loos
Date:
Subject: number of values updated per column