Re: SPI_processed is not set for COPY statement

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SPI_processed is not set for COPY statement
Date: 2011-10-03 14:41:11
Message-ID: 4E89C987.2030403@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 10/03/2011 10:34 AM, Pavel Stehule wrote:
> Hello
>
> is there some possibility to get a processed rows from COPY statement
> from PL/pgSQL?
>
> I searched any ways, but there are no command tag.
>
>

You mean something like a RETURNING clause?

My worry would be about possible speed effects, although that would
probably be slight when it's not used.

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-10-03 14:41:48 Re: Should we get rid of custom_variable_classes altogether?
Previous Message Pavel Stehule 2011-10-03 14:34:04 SPI_processed is not set for COPY statement