<div dir="ltr"><div><div><div><div>Maybe you can try to separate raster2pgsql and psql .<br><br></div>First use raster2pgsqland output it to a file on you filesystem.<br></div>Then use psql <br>to execute this file.<br><br>
</div>You could see how much time each step takes, and how much space the sql temp file is.<br><br></div>Maybe you could use the   "-Y" flag to make it faster?<br><br>Cheers,<br>Rémi-C<br><div><br><br></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-27 11:03 GMT+01:00 Eloi <span dir="ltr"><<a href="mailto:eloi@openmailbox.org" target="_blank">eloi@openmailbox.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
My SELECT PostGIS_Full_Version() is: "POSTGIS="2.0.3 r11128" GEOS="3.3.8-CAPI-1.7.8" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.10.0, released 2013/04/24" LIBXML="2.9.0" LIBJSON="UNKNOWN" RASTER"<br>

<br>
I am importing a GeoTIFF (1 band, Type = Byte,  Not Compressed file size = 933.5 MB, columns/rows 43200, 21600, Pixel Size = 0.008333333333333,-0.<u></u>008333333333333) into PostGIS and is taking more than one hour by now. Is that normal?<br>

<br>
This is the command I have used:<br>
raster2pgsql -s 4326 -d -I -C -M -t 5x5 /path/file_name.tif schema_name.table_name|psql -d db_name<br>
<br>
Yes, very small tiles. The goal is to intersect this raster with point features. But the issue right now is the import it self that is taking to much time.<br>
I can see now that the first 1:30 were for inserts and now is starting with the constraints. Is this the normal speed or am I missing something?<br>
<br>
Thanks. Cheers,<br>
<br>
Eloi<br>
______________________________<u></u>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-<u></u>bin/mailman/listinfo/postgis-<u></u>users</a><br>
</blockquote></div><br></div>