Re: problem with copy_expert on cursor - Mailing list psycopg

From Eric Snow
Subject Re: problem with copy_expert on cursor
Date
Msg-id D2F744D05ED19D45A4A7757F49274A8B0416F7A7@IAD-WPRD-XCHB01.corp.verio.net
Whole thread Raw
In response to problem with copy_expert on cursor  ("Eric Snow" <esnow@verio.net>)
Responses Re: problem with copy_expert on cursor  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
If my StringIO object gets a MemoryError, will the cursor's copy_expert
handle that, or is that the SystemError I am seeing?  Thanks.

-eric

-----Original Message-----
From: Eric Snow
Sent: Wednesday, March 02, 2011 2:21 PM
To: 'psycopg@postgresql.org'
Subject: problem with copy_expert on cursor

What would cause the following error when I call copy_expert on a
DictCursor?

    SystemError: 'null argument to internal routine'

The sql I pass in is the copy, in a string.  The file is a
cStringIO.StringO object.  I am using a custom row factory on the
DictCursor.  So there are a number of things that could be the source of
the error.  However, I am not familiar enough with psycopg to dig this
out.

Incidently, the problem is actually when I am using skytools for
replication, and not actually in any code I have written.  I am using
psycopg2 2.3.2.  Thanks.

-eric


This email message is intended for the use of the person to whom it has been sent, and may contain information that is
confidentialor legally protected. If you are not the intended recipient or have received this message in error, you are
notauthorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender
immediatelyby return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that
thisemail is error or virus free.  Thank you. 

psycopg by date:

Previous
From: "Eric Snow"
Date:
Subject: problem with copy_expert on cursor
Next
From: Daniele Varrazzo
Date:
Subject: Re: problem with copy_expert on cursor