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

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: returning the number of rows output by a copy command from a function
Date: 2013-01-17 10:54:21
Message-ID: kd8l8t$96r$2@gonzo.reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 2013-01-16, James Sharrett <jsharrett(at)tidemark(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Willy-Bas Loos 2013-01-17 17:36:26 number of values updated per column
Previous Message Misa Simic 2013-01-16 17:46:06 Re: returning the number of rows output by a copy command from a function