Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is possible cancel cycle of reading pg_getcopydata?

5 views
Skip to first unread message

Pavel Stehule

unread,
Feb 11, 2016, 10:30:02 AM2/11/16
to dbd...@perl.org
Hi all

I use synchronnous function pg_getcopydata. Sometimes I need to leave
cycle immediately. The exit is working, but it produce FATAL error
"connection to client lost". Is it possible to reset connection and
leaving without this message?

Regards

Pavel Stehule

Pavel Stehule

unread,
Feb 11, 2016, 11:15:01 AM2/11/16
to dbd...@perl.org
I found it - the necessary to call undocumented method pg_endcopy()

Regards

Pavel
>
> Regards
>
> Pavel Stehule
>
>

Greg Sabino Mullane

unread,
Feb 11, 2016, 11:30:01 AM2/11/16
to Pavel Stehule, dbd...@perl.org
> I found it - the necessary to call undocumented method pg_endcopy()

Undocumented is not a good word. Patches and/or bug reports welcome
from anyone reading this. :)


--
Greg Sabino Mullane gr...@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
signature.asc

Pavel Stehule

unread,
Feb 11, 2016, 12:15:01 PM2/11/16
to Greg Sabino Mullane, dbd...@perl.org
On Thu, 11 Feb 2016, Greg Sabino Mullane wrote:

>> I found it - the necessary to call undocumented method pg_endcopy()
>
> Undocumented is not a good word. Patches and/or bug reports welcome
> from anyone reading this. :)

I am not a Perl developer, so I don't know if it is good solution or some
forgotten workaround :). I found note about pg_endcopy in some old man
pages, but not in http://search.cpan.org/~rudy/DBD-Pg/Pg.pm. But I can to
verify - this function exists and works.

Regards

Pavel


>
>
0 new messages