<div dir="ltr">Thanks so much for your reply. For information, i try to do with Postgis the union Qgis Geoprocessing : <br><a href="https://docs.qgis.org/3.40/en/docs/user_manual/processing_algs/qgis/vectoroverlay.html#union">https://docs.qgis.org/3.40/en/docs/user_manual/processing_algs/qgis/vectoroverlay.html#union</a></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Le mar. 24 juin 2025 à 12:11, Darafei "Komяpa" Praliaskouski <<a href="mailto:me@komzpa.net">me@komzpa.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<br><br>I am not sure what you wanted to do, but the query you wrote runs union pairwise between all objects of the first table and second table, creating NxM objects each of which is a sum of two different polygons in the first and second layer. It is entirely possible that this consumes all of your disk drive and then frees it back up during crash handling. Please get someone to write the query to correctly do what you meant to do instead.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 24, 2025 at 12:37 PM celati Laurent <<a href="mailto:laurent.celati@gmail.com" target="_blank">laurent.celati@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">
<a href="https://gis.stackexchange.com/posts/494155/timeline" aria-label="Timeline" aria-describedby="--stacks-s-tooltip-e9ug85l2" target="_blank"></a><div><div>
</div>
</div><div>
<div>
<p>Dear all, </p><p>I want to compare a geoprocessing done in QGIS and PostGIS. It
involves a union of two large polygonal vector layers.The processing in
QGIS tooks 1.5 hours on a well-equipped workstation (32 GB of RAM). I
was never able to complete the processing on PostGIS.</p>
<p>Here is the tested SQL query:</p>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><code><span>create</span> <span>table</span> public.union <span>as</span>
<span>select</span> st_union(ST_Forece2D(mos.geom), ST_Forece2D(bd_topo_bat.geom))
<span>from</span> public.mos, public.bd_topo_bat
</code></blockquote>
<p>Here is the error message:</p>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><code>ERROR: could <span>not</span> extend file "base/19370/76968.57" <span>with</span> FileFallocate(): <span>No</span> space <span>left</span> <span>on</span> device HINT: <span>Check</span> available disk space. ERROR: Could <span>not</span> extend file "base/19370/76968.57" <span>with</span> FileFallocate(): <span>No</span> space <span>left</span> <span>on</span> device <span>SQL</span> state: <span>53100</span>
</code></blockquote>
<p>The error message is related to a problem with the temporary log
file. In the postgresql.conf file, I edited the file by setting the
value of log_temp_files = 10240. The default value was -1. I took this
action based on this post: <a href="https://stackoverflow.com/questions/50833992/postgresql-no-space-left-on-device" target="_blank">https://stackoverflow.com/questions/50833992/postgresql-no-space-left-on-device</a></p>
</div></div>Thanks so much. </div>
</blockquote></div>
</blockquote></div>