<div dir="ltr"><div><br></div><div>1.) you have several statement, which one is taking too much time?<br></div><div>2.) you don't give enough information (<a href="http://wiki.postgresql.org/wiki/Slow_Query_Questions">http://wiki.postgresql.org/wiki/Slow_Query_Questions</a>)<br>
</div><div>3.) If you need "progress percent", <a href="http://dba.stackexchange.com/questions/50602/how-do-i-find-out-how-far-along-my-postgresql-query-is">http://dba.stackexchange.com/questions/50602/how-do-i-find-out-how-far-along-my-postgresql-query-is</a><br>
<br>Cheers,<br>Rémi-C<br></div><div><br></div>Cheers,<br>Rémi-C<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-08 9:12 GMT+02:00 J.Alejandro Martinez Linares <span dir="ltr"><<a href="mailto:islanis@infomed.sld.cu" target="_blank">islanis@infomed.sld.cu</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi people, i am executing a query that contain st_contains function of postgis, but y am 3 days executing this query, and it is dont done, i need help to obtain the progress percent of how much time it will be in that status, or a similar solution, thanks to all.<br>

<br>
<br>
CREATE TABLE sigfre_cub_Adm_Asentam_<u></u>intersec<br>
AS (SELECT<br>
  a.codigo,<br>
  a.nombre,<br>
  a.cod_munic,<br>
  a.viviendas,<br>
  a.poblacion,<br>
  a.categoria,<br>
  a.tipo,<br>
ST_Intersection(a.the_geom, b.the_geom) as the_geom<br>
FROM "sigfre_cub_Adm_Asentam" as a, mapa_base_disolver as b<br>
WHERE<br>
ST_Intersects(a.the_geom, b.the_geom));<br>
UPDATE sigfre_cub_Adm_Asentam_<u></u>intersec SET the_geom=ST_SetSRID(the_geom,<u></u>4326);<br>
SELECT Populate_Geometry_Columns('<u></u>public.sigfre_cub_Adm_Asentam_<u></u>intersec'::regclass);<br>
ALTER TABLE sigfre_cub_Adm_Asentam_<u></u>intersec ADD column gid serial;<br>
ALTER TABLE sigfre_cub_Adm_Asentam_<u></u>intersec ADD PRIMARY KEY (gid);<br>
<br>
--<br>
<br>
Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas<br>

<br>
Infomed: <a href="http://www.sld.cu/" target="_blank">http://www.sld.cu/</a><br>
<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>