[gdal-dev] RuntimeError no COPY in progress

Ari Jolma ari.jolma at gmail.com
Thu Oct 2 09:26:37 PDT 2014


A strange bug somewhere between OGR and PostgreSQL(?)

I've created a layer with a geometry and id fields. The layer gets 
created ok. After inserting 500 features I get the error:

RuntimeError no COPY in progress

PostgreSQL  logs this:

2014-10-02 19:23:03 EEST ERROR:  COPY from stdin failed: COPY terminated 
by new PQexec
2014-10-02 19:23:03 EEST CONTEXT:  COPY rannat, line 501
2014-10-02 19:23:03 EEST STATEMENT:  COPY "rannat" ("wkb_geometry", 
"id") FROM STDIN;
2014-10-02 19:23:03 EEST ERROR:  current transaction is aborted, 
commands ignored until end of transaction block
2014-10-02 19:23:03 EEST STATEMENT:  FETCH 500 in OGRPGLayerReader0x258c8f0
2014-10-02 19:23:03 EEST ERROR:  current transaction is aborted, 
commands ignored until end of transaction block
2014-10-02 19:23:03 EEST STATEMENT:  CLOSE OGRPGLayerReader0x258c8f0

"rannat" is the new table.

Any ideas? Am I inserting features too fast??

Ari



More information about the gdal-dev mailing list