[OSM-dev] Killing osm2pgsql application while updating PostGIS. What happens?

Giuseppe Castagno giuseppe.castagno at acca-esse.eu
Sun Jan 24 13:05:28 GMT 2010


Hi Frederik,

Frederik Ramm wrote:
...
> 
> Does it not all happen in a transaction, which will simply be discarded 
> by PostGIS if not committed properly?

so it should, but I was wondering why exit_nicely() gets called every 
time osm2pgsql finds an error (in turn it calls PQfinish() function, for 
pgsql mode); whereas there is no provision for system signal catching.

So if I got it right, when the server shuts down while updating PostGIS 
(for example reacting to a UPS loosing main power event) there should be 
no problem, right?

Thanks,
BeppeC56
-- 
Kind Regards,
Giuseppe Castagno
Acca Esse http://www.acca-esse.eu
giuseppe.castagno at acca-esse.eu
beppec56 at openoffice.org





More information about the dev mailing list