<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi, I want to do parallel processing for this code below:<br><br>CREATE TABLE clipped_rasters_f (<br>id serial PRIMARY KEY,<br>clipped_raster raster<br>filename text,<br>DECLARE<br>DO $$<br>);<br>min_lon numeric := -98; -- Minimum Longitude<br>raster_row record;<br>min_lat numeric := 23; -- Minimum Latitude<br>max_lon numeric := -74; -- Maximum Longitude<br>crs integer := 4326; -- Coordinate Reference System (CRS)<br>max_lat numeric := 41; -- Maximum Latitude<br><br><div>BEGIN<br>FOR raster_row IN (SELECT id, filename, rast FROM gfdl_03_temp)<div>LOOP<br>INSERT INTO clipped_rasters (filename, clipped_raster_f)<br>SELECT raster_row.filename, ST_Clip(rast, ST_MakeEnvelope(min_lon, min_lat, max_lon, max_lat, crs))<br>FROM gfdl_03_temp<br>WHERE id = <a href="http://raster_row.id">raster_row.id</a>;</div><div>END LOOP;<br><div>END $$; --&<br></div><div>Can someone guide me on understanding the mandatory edits in changing this code or any postgis functions used in a query to convert to a par_psql compatible query?</div></div></div><div><br></div><div>Thank you,</div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font size="2" face="trebuchet ms, sans-serif">Manaswini Ganjam</font></div></div></div></div></div>
</div><br></div>