[gdal-dev] Export multiple tables from GPKG to PG

matteo matteo.ghetta at gmail.com
Wed Dec 23 07:00:28 PST 2020


Hi all (again, sorry for the flooding),

for some reasons I have to export many tables (not all) from a GPKG to a 
PG database.

I can do it easily with a loop, but I need ogr2ogr to do it in a single 
transaction. That's because even if the first N tables are correctly 
imported, at the first error I need a total rollback without importing 
anything in PG.

The "problem" is that I have to specify some parameter in ogr2ogr (e.g. 
-nln) for each table to import.

I hope I made myself clear

Cheers and thanks

Matteo


More information about the gdal-dev mailing list