On Mon, Oct 3, 2011 at 3:18 AM, Federico Di Gregorio
<fog@dndg.it> wrote:
On 01/10/11 10:41, Daniele Varrazzo wrote:
> On Sat, Oct 1, 2011 at 9:18 AM, Croepha <
croepha@gmail.com> wrote:
>> > It seems to be blocking, (or waiting on IO at times...) What is the point to
>> > doing a select on the connection if poll is going to block?
> Have you vented? Ok, great. Now, care to provide an example of what
> you're talking about?
He's probably polling a synchronous connection.
I am currently using a synchronous connection.
I just wan't to verify my understanding of how psycopg2 works:
1. Can synchronous connections can block on poll?
2. Are you allowed to set client encoding in an asynchronous connection? (mine gives me an exception when I try) if not, why not?
PS:
Sorry, I just now realized that I had replied directly to Daniele, instead of posting to the list