Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Activity (RSS)

Tuesday, August 09 2011
64 setup.py static_libpq=1 doesn't quite work was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 10:36 AM

    Fixed, thank you for the report.

65 NamedTupleCursor.executemany omits query parameter was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 10:30 AM

    Oops... fixed. Thank you for the report.

  • Psycopg website
    Psycopg website created the ticket at 9:51 AM

    Submitted by: jpritikin@pobox.com

    --- ./lib/extras.py.orig 2011-08-09 15:20:37.000000000 +0530 +++ ./lib/extras.py 2011-08-09 15:20:57.000000000 +0530 @@ -275,7...

Friday, August 05 2011
64 setup.py static_libpq=1 doesn't quite work was created
  • Psycopg website
    Psycopg website created the ticket at 8:08 AM

    Submitted by: Charlie Dyson (charlie at charliedyson dot net)

    I changed setup.py:365 to add "or not self.link_objects" as that attribute had been set to None so...

Sunday, July 24 2011
63 small documentation bug was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 8:02 PM

    Fixed, thanks.

Tuesday, July 19 2011
63 small documentation bug was created
  • Peter Eisentraut
    Peter Eisentraut created the ticket at 4:03 AM

    There are quotes missing in one documentation example. See attached patch.

Friday, July 01 2011
62 Need a way to remove 'bad' connections from a connection pool was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:52 AM

    Yes, what you propose is a robust way to get a connection from the pool guarding from a server disconnection. I don't want to add a probe query into the pool co...

Thursday, June 30 2011
62 Need a way to remove 'bad' connections from a connection pool was updated
  • Sam Morris
    Sam Morris commented at 5:07 PM

    Ah, thanks for that information.

    Does this look like the right thing to do in order to get a connection from the pool? Sorry if this sounds like a support reque...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 3:23 PM

    Looking at the pool code, there is a way to discard the connection: use putconn(cnn, close=True), but it is not documented: I will fix the documentation.

    Howeve...

  • Daniele Varrazzo
    • Tag set to pool
    • State changed from new to open
    by Daniele Varrazzo at 2:05 PM

    I see other problems in the pool too: if a connection is returned to the pool while a transaction is open, the connection is left idle in transaction.

    A robust ...

  • Sam Morris
    Sam Morris created the ticket at 10:45 AM

    In the following code:

    c = pool.getconn()
    try:
        f(c)
    finally:
        pool.putconn()
    

    If the database is restarted while f is executing then an OperationalError...

Saturday, June 11 2011
61 No prompt to restart was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 10:56 PM

    See ticket #60. Psycopg doesn't require a restart to be used. If it does, I believe it is some registry mess preventing it to work properly. Please contact Jaso...

60 installer hangs if not administrator was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 10:54 PM

    I suppose psycopg installer is the regular installer executable built by distutils. I can hardly believe this wouldn't have been reported before, either to dist...

Wednesday, June 08 2011
61 No prompt to restart was created
  • Psycopg website
    Psycopg website created the ticket at 12:59 PM

    Submitted by: mike brown

    Installed the latest version of the win 7 64 bit driver and I could not get the import to work to work on python 2.7.1. Nothing worked ...

60 installer hangs if not administrator was created
  • Psycopg website
    Psycopg website created the ticket at 12:54 PM

    Submitted by: mike brown

    I was installing the latest driver for 64 bit windows 7 and the installer would repeatedly hang. It would get to a certain point and ju...

Tuesday, June 07 2011
59 copy_from/copy_to documentation (cursor.rst) incorrect was updated
58 Apparent race condition in psycopg2 was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 8:27 AM

    Thanks for the report. Fixed in devel. To be released. in 2.4.2.

Monday, June 06 2011
59 copy_from/copy_to documentation (cursor.rst) incorrect was created
58 Apparent race condition in psycopg2 was created
55 Deadlock in 2.4.0. was updated
  • ronin-150602 (at lighthouseapp)
    ronin-150602 (at lighthouseapp) commented at 9:36 AM

    Wait, I found it, sorry for the noise.

    I've compiled devel from git and run my test script on it, and can confirm that the bug no longer occurs here. :)

  • ronin-150602 (at lighthouseapp)
    ronin-150602 (at lighthouseapp) commented at 9:18 AM

    Wonderful! Thank you, Daniele. Is there a branch I can pull to test the fix here?

Saturday, June 04 2011
53 mx erroneously detected inside virtualenv was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 11:45 PM

    I have committed a better fix, to be released soon. mx is now an optional dependency even when the support is built: at runtime, if not found, mx is disabled an...

55 Deadlock in 2.4.0. was updated
  • Daniele Varrazzo
    • Tag set to multithread
    • State changed from open to resolved
    by Daniele Varrazzo at 12:58 AM

    The problem should be fixed.

    We were processing notifies after releasing the connection lock, together with the result process. But, while the result is in a re...

Friday, June 03 2011
57 Error on processing placeholders with negative integer was updated
Monday, May 30 2011
57 Error on processing placeholders with negative integer was updated
55 Deadlock in 2.4.0. was updated
  • ronin-150602 (at lighthouseapp)
    ronin-150602 (at lighthouseapp) commented at 7:47 AM

    Aw, darn.

    Given the other symptoms (traceback, etc) that sometimes occur instead of the deadlock, I was hoping for a 'simple' concurrency issue, perhaps a missi...

Sunday, May 29 2011
57 Error on processing placeholders with negative integer was created
  • Psycopg website
    Psycopg website created the ticket at 10:44 PM

    Submitted by: nk.0@ya.ru (Konstantin Nikitin)

    Here is my error log

    import psycopg2 connection = psycopg2.connect("user=konstantin dbname=konstantin") cursor ...

55 Deadlock in 2.4.0. was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:23 PM

    In my test the connection to the server was still open: with a pg_terminate_backend() the client is released (with an exception of course). So it looks like ano...

  • ronin-150602 (at lighthouseapp)
    ronin-150602 (at lighthouseapp) commented at 9:54 AM

    Hi Daniele,

    Thank you for your help. :)

    If it helps, we have noticed that at the time the poll() call occurs, the PostgreSQL server thinks that all its client c...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 9:30 AM

    The above traceback doesn't seem a deadlock: thread 3 is stuck in a poll.

Saturday, May 28 2011
55 Deadlock in 2.4.0. was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 8:54 AM

    Stack trace of the three threads in a deadlock:

    Thread 2:

    [#0](/projects/62710/tickets/0 "Ticket #0")  0x00110416 in __kernel_vsyscall ()
    [#1](/projects/62710/...
Friday, May 27 2011
55 Deadlock in 2.4.0. was updated
  • Daniele Varrazzo
    • State changed from new to open
    by Daniele Varrazzo at 11:35 PM

    I can reproduce the deadlock, even if not consistently, with the current devel too. Sometimes instead of deadlocks I have had loss of sync with the server and a...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 9:22 PM

    Thank you for the report and for the test case: will definitely investigate!

Wednesday, May 25 2011
55 Deadlock in 2.4.0. was updated
  • ronin-150602 (at lighthouseapp)
    ronin-150602 (at lighthouseapp) commented at 9:33 AM

    Side note: sometimes psycopg seems to raise a SystemError exception instead of deadlocking, hinting at other underlying concurrency issues:

    Exception in thread...
  • ronin-150602 (at lighthouseapp)
    ronin-150602 (at lighthouseapp) created the ticket at 9:25 AM

    rel-2.4.0
    os-linux

    In the particular setup implemented in the attached file, psycopg ends up deadlocking.

    The setup: all the threads share a single connection. ...

Tuesday, May 17 2011
34 Problems installation in windows 7 was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:47 AM

    If you stumble in this bug, first try to convert the .exe into a .zip and extract it manually as explained in Jason's page: it has worked for other users with s...

Friday, May 13 2011
20 Building psycopg2 for Python 2.7 on Windows XP was updated
  • Alec Munro
    Alec Munro commented at 6:29 PM

    This is still occurring, at least on 2.7.

    Both building my own using Visual C++ 2008 Express, and downloading the built version.

52 Can't adapt type 'Decimal' was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 11:30 AM

    Closing the ticket, but please keep us informed in case you manage to reproduce it consistently. Thank you!

54 [Feature Request] Add support for a pgpass connect parameter was updated
Wednesday, May 11 2011
54 [Feature Request] Add support for a pgpass connect parameter was created
  • fpoirotte
    fpoirotte created the ticket at 3:57 PM

    Hi,

    To the best of my knowledge, there is currently no way in psycopg2 to make it use a specific pgpass file instead of the default one, when using keywords wit...

Wednesday, May 04 2011
52 Can't adapt type 'Decimal' was updated
  • Marti Raudsepp
    Marti Raudsepp commented at 3:26 PM

    Interesting. I tried this reload() case with pg8000 and PyGreSQL, both also fail with a similar error.

    Upon closer inspection, turns out that this has only occu...

53 mx erroneously detected inside virtualenv was updated
  • Daniele Varrazzo
    • State changed from open to resolved
    by Daniele Varrazzo at 12:18 AM

    Fixed in my devel.

Tuesday, May 03 2011
53 mx erroneously detected inside virtualenv was updated
  • Daniele Varrazzo
    • State changed from new to open
    • Tag set to build, mx, virtualenv
    by Daniele Varrazzo at 11:44 PM

    Checking for the importability of mx at build time seems a good solution.

52 Can't adapt type 'Decimal' was updated
  • Daniele Varrazzo
    • Tag set to adapt, decimal
    by Daniele Varrazzo at 11:35 PM

    The same bug was reported for mod_python a few years ago and was fixed, so I don't know why it's bugging again - or it is something similar.

    The problem is that...

51 TypeError: can't escape unicode to binary: writing unicode into bytea was updated
  • Daniele Varrazzo
    • Tag set to binary, unicode
    • State changed from new to invalid
    by Daniele Varrazzo at 11:02 PM

    No, it's not reasonable for unicode to be interpreted as a binary string. This is the entire point for which there are separate unicode and string object (or st...

Wednesday, April 27 2011
53 mx erroneously detected inside virtualenv was created
  • Anders Pearson
    Anders Pearson created the ticket at 4:16 PM

    Briefly, the issue is that when installing psycopg2 in a virtualenv that was created with --no-site-packages (in an attempt to be completely independent of the ...

Tuesday, April 26 2011
52 Can't adapt type 'Decimal' was created
  • Marti Raudsepp
    Marti Raudsepp created the ticket at 1:21 PM

    We're using lots of numeric/Decimal types in our database, with a Django/mod_wsgi/Apache frontend, using WSGI daemon mode. Sometimes we spuriously receive "Can'...

Monday, April 25 2011
51 TypeError: can't escape unicode to binary: writing unicode into bytea was updated
  • tamagotchi
    tamagotchi commented at 7:30 PM

    After poking around some more, I figure out that the above code doesn't work with other versions of Postgres and psycopg as well.
    The reason why my application ...

Saturday, April 23 2011
51 TypeError: can't escape unicode to binary: writing unicode into bytea was created
  • tamagotchi
    tamagotchi created the ticket at 1:51 AM

    Hi,

    I have been using psycopg2 on PostgreSQL 8.3, 8.4 on Linux and Windows without any issues.
    Now I started working on a Mac OSX machine and installed the late...