<br>Thanks Jason, I think I had read that - I quite enjoy Edward&#39;s posts.  Re-reading, seems to confirm what I thought, most (all?) of the FFI calls in HDBC-postgresql should be changed to &quot;safe&quot;.<br><br>-- David<br>
<br><div class="gmail_quote">On Thu, Sep 2, 2010 at 2:47 PM, Jason Dagit <span dir="ltr">&lt;<a href="mailto:dagit@codersbase.com">dagit@codersbase.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Wed, Sep 1, 2010 at 7:40 PM, David Powell &lt;<a href="mailto:david@drp.id.au">david@drp.id.au</a>&gt; wrote:<br>
&gt; Greetings,<br>
&gt;<br>
&gt; I&#39;m having an issue with the HDBC-postgresql package that requires me to<br>
&gt; manually patch it before installation for most of my use cases.<br>
&gt;<br>
&gt; All the FFI calls in this package are marked &quot;unsafe&quot;.  Unfortunately, this<br>
&gt; means that whenever I issue a slow sql query, all other processing stops.<br>
&gt; In most places that I want to use this module, I&#39;ve had to manually patch it<br>
&gt; to at least mark the PQexec and PQexecParams calls as &quot;safe&quot;.<br>
&gt;<br>
&gt; Is there any reason these calls should not be marked as &quot;safe&quot;?  I<br>
&gt; understand that there a little extra runtime overhead with this, but I&#39;d<br>
&gt; have thought that negligible given all the other processing that goes on<br>
&gt; with these particular calls under the hood.<br>
<br>
</div></div>Have you read this?<br>
<a href="http://blog.ezyang.com/2010/07/safety-first-ffi-and-threading/" target="_blank">http://blog.ezyang.com/2010/07/safety-first-ffi-and-threading/</a><br>
<br>
Perhaps it answers your questions?<br>
<font color="#888888"><br>
Jason<br>
</font></blockquote></div><br>