Re: Fwd: [GENERAL] [LibPQ] Trying PQconnectStart: it doesn't seem to connect

2010-01-25 Thread Alessandro Agosto
Thank you for your reply. 2010/1/25 Daniel Verite >Alessandro Agosto wrote: > > > I'm not yet within select/poll cycle, this is the first call that should > > return CONNECTION_OK or CONNECTION_BAD (refering to docs). > > That would be the behavior of PQconnectdb(), not PQconnectStart().

Re: Fwd: [GENERAL] [LibPQ] Trying PQconnectStart: it doesn't seem to connect

2010-01-24 Thread Daniel Verite
Alessandro Agosto wrote: > I'm not yet within select/poll cycle, this is the first call that should > return CONNECTION_OK or CONNECTION_BAD (refering to docs). That would be the behavior of PQconnectdb(), not PQconnectStart(). Have you read that part of the doc: Other states might als

Fwd: [GENERAL] [LibPQ] Trying PQconnectStart: it doesn't seem to connect

2010-01-24 Thread Alessandro Agosto
From: Alessandro Agosto Date: 2010/1/24 Subject: Re: [GENERAL] [LibPQ] Trying PQconnectStart: it doesn't seem to connect To: Craig Ringer Hi, thank you for your reply. 2010/1/24 Craig Ringer What's wrong with psycopg2 for this purpose? > > Python's threading support (in the standard CPython