I have quite a few problems googled and I have a pretty decent reading comprehension, but I don't understand if this script will work in multiple threads in my postgres / postgis. Here is the code:
Do $do$ DECLARE x RECORD; b int; begin create temp table geoms (id serial, geom geometry) on commit drop; for x in select id,geom from asdf loop truncate table geoms; insert into geoms (geom) select someGeomfield from sometable where st_intersects(somegeomfield,x.geom);
So, if I run this in more than one client called from Java, will there be a problem with the temp geom table? If so, any ideas for solving this in PostGres will be helpful.
thanks
markg source share