<br><font size=2 face="sans-serif">Hi,</font>
<br><font size=2 face="sans-serif">This query didn't endup after 4 hours....and
eat 40gig of disk space</font>
<br><font size=2 face="sans-serif">SELECT id, gridcode, ST_Difference(a.geom32198_s,b.geom32198_s)
as geom32198_s</font>
<br><font size=2 face="sans-serif">into potentialite </font>
<br><font size=2 face="sans-serif">FROM province as a, potentialite_tmp
as b;</font>
<br>
<br><font size=2 face="sans-serif">I stopped the execution and cancel request
sent appears, but after an hour the request wasn't stopped yet.</font>
<br><font size=2 face="sans-serif">So I killed the process and restat postgres.</font>
<br>
<br><font size=2 face="sans-serif">The database is up and running but I
didn't get the 40gig of disk space back. And only 5gig remains on the server</font>
<br>
<br><font size=2 face="sans-serif">It is this table that is so huge</font>
<br><font size=2 face="sans-serif">pg_toast.pg_toast_11037520</font>
<br>
<br><font size=2 face="sans-serif">I tried with vaccuumdb without success.
Vacuumdb full didn't work because only 5 gig left on the server</font>
<br><font size=2 face="sans-serif">1-</font>
<br><font size=2 face="sans-serif">What can I do to get back the disk space?
Can I simply drop pg_toast.pg_toast_11037520?</font>
<br>
<br><font size=2 face="sans-serif">2-</font>
<br><font size=2 face="sans-serif">Both tables have gist index, any idea
why it takes so long to execute and why this query is so "heavy"
for postgis?</font>
<br>
<br><font size=2 face="sans-serif">thanks in advance for your help</font>
<br><font size=2 face="sans-serif">Steve</font>
<br>
<p>