On 19 October 2017 at 15:06, Leon Winter <winter-pg(at)bfw-online(dot)de> wrote:
> The calculations inside the loop are written in some dynamic high-level
> language and cannot easily be translated into SQL.
>
Can you not simply create a second connection to perform the updates?
Geoff