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.

Daniele Varrazzo's latest activity

Friday, March 15 2013
150 Test failures about NOTICE messages on unreleased Postgres 9.3 was updated in psycopg
  • Daniele Varrazzo
    • State changed from new to open
    by Daniele Varrazzo at 4:48 PM

    I see, thank you for the tests. I'll commit your test suite patch for the next release.

  • Daniele Varrazzo
    Daniele Varrazzo commented at 11:37 AM

    Thank you, I'll look into the issue.

    Out of curiosity, wouldn't have been the same to add on top of the failing tests something like:

    if postgres_version >= 9....
Monday, February 25 2013
149 Add support for PG_DIAG_*_NAME error fields was updated in psycopg
  • Daniele Varrazzo
    Daniele Varrazzo commented at 11:33 AM

    Oh, I thought PQresultErrorField was a new api. This makes things easier.

    I'd avoid a mapping as I don't want to query everything on object creation, only on at...

Friday, February 22 2013
149 Add support for PG_DIAG_*_NAME error fields was updated in psycopg
  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:17 AM

    It's actually interesting. What I'd do is to add a diag attribute to the exception, that could be used to fetch the relevant attribute, something like:

    try:
      ...
Sunday, February 17 2013
148 memory leak if connection is closed actively by pg server was updated in psycopg
  • Daniele Varrazzo
    • State changed from new to open
    by Daniele Varrazzo at 8:59 AM

    Thank you for the report and the analysis: we'll look into that.

Wednesday, January 30 2013
147 Install failed to build was updated in psycopg
  • Daniele Varrazzo
    • Tag set to freebsd, threads
    by Daniele Varrazzo at 3:56 PM

    Google for:

    pth/pthread.h warning: "fork" redefined
    

    and you'll see a lot of hits. Seems a problem with pth to me. I also see from your log that pth is your /u...

Monday, January 21 2013
145 Floats are not exactly preserved was updated in psycopg
  • Daniele Varrazzo
    Daniele Varrazzo commented at 2:49 PM

    As shown above, Python and Postgres parse floats in different ways:

    piro@risotto:~$ python
    Python 2.7.2+ (default, Jul 20 2012, 22:15:08) 
    [GCC 4.6.1] on linux...
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 1:02 PM

    Python doesn't store all these digits: python's float is only 64 bits.

    before = 3.14159265358979323846264338327950288
    
    >>> print before
    3.141592653589793
    

    Your...

146 round() function build failure on Solaris 11 was updated in psycopg
  • Daniele Varrazzo
    Daniele Varrazzo commented at 1:26 PM

    Googling around, looks like we should define round() for solaris < 10: see https://jira.toolserver.org/browse/TS-1072.

    Can you provide such a patch? Thank you.

  • Daniele Varrazzo
    Daniele Varrazzo commented at 1:15 PM

    Please take a look at ticket #97: somebody was trying to clean up this problem and doesn't look like he succeeded. We haven't heard back from him.

    Please provid...