sector119
unread,Nov 4, 2009, 12:08:05 PM11/4/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlalchemy
I use sqlalchemy 0.6 and psycopg2 2.0.13.
When I try to copy from some little file it's ok, when from some
bigger one I got error and log posted below.
When I use pgbouncer and pass poolclass=pool.NullPool to create_engine
everything wor perfect with large file too.
My query is:
session.connection().connection.cursor().cursor.copy_from(f, table,
sep=chr(int(conf['import.separator'])), columns=map(str, fields.split
(',')))
Log:
2009-11-04 18:43:30 EET LOG: statement: COPY people
(id,street_id,building,corpus,appartment,block,last_name,hd,residents,space,rooms,privilege,comment)
FROM stdin WITH DELIMITER AS E' '
2009-11-04 18:44:08 EET LOG: could not receive data from client:
Connection reset by peer
2009-11-04 18:44:08 EET CONTEXT: COPY people, line 6146
2009-11-04 18:44:08 EET STATEMENT: COPY people
(id,street_id,building,corpus,appartment,block,last_name,hd,residents,space,rooms,privilege,comment)
FROM stdin WITH DELIMITER AS E''
2009-11-04 18:44:08 EET LOG: incomplete message from client
2009-11-04 18:44:08 EET CONTEXT: COPY people, line 6146
2009-11-04 18:44:08 EET STATEMENT: COPY people
(id,street_id,building,corpus,appartment,block,last_name,hd,residents,space,rooms,privilege,comment)
FROM stdin WITH DELIMITER AS E''
2009-11-04 18:44:08 EET ERROR: unexpected EOF on client connection
2009-11-04 18:44:08 EET CONTEXT: COPY people, line 6146
2009-11-04 18:44:08 EET STATEMENT: COPY people
(id,street_id,building,corpus,appartment,block,last_name,hd,residents,space,rooms,privilege,comment)
FROM stdin WITH DELIMITER AS E''
2009-11-04 18:44:08 EET LOG: could not send data to client: Broken
pipe
2009-11-04 18:44:08 EET LOG: could not receive data from client:
Connection reset by peer
2009-11-04 18:44:08 EET LOG: unexpected EOF on client connection
2009-11-04 18:44:08 EET LOG: disconnection: session time: 0:00:44.763
user=eps database=eps host=localhost port=44257