<div dir="ltr"><div>I've been attempting to import a large shapefile into postgis and I keep running into "ERROR:  current transaction is aborted, commands ignored until end of transaction block" when importing the data.<br>
<br></div><div> Is there a easy method to determine which INSERT causes the transaction to fail? It appears the only why is to catch the stdout as soon as psql errors<br><br></div><div>shp2pgsql -I -W LATIN1 -s 3857 mybigshp.shp mytbl > mysql.sql<br>
<br></div><div>psql -U user -o log.txt mydb < mysql.sql<br><br></div><div>Thanks<br></div></div>