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)

Monday, February 20 2012
99 Typos in comments of setup.cfg was created
  • Nate Eagleson
    Nate Eagleson created the ticket at 9:22 PM

    There is a minor typo in setup.cfg.

    I have attached a patch that fixes it, and also removes some extraneous whitespace.

98 Minor typos in INSTALL document was created
  • Nate Eagleson
    Nate Eagleson created the ticket at 9:16 PM

    There are a few minor typos in the project's INSTALL document.

    I have attached a patch against the devel branch that fixes them, and removes some extraneous whi...

Saturday, February 18 2012
97 Provide missing round function for solaris 8 & 9 was updated
  • Floris Bruynooghe
    Floris Bruynooghe commented at 3:01 PM

    Hi, sorry for the delay. I've been away for a while and wanted to double check by compiling on Solaris8 as well (we ended up dropping it early so it's no longer...

Friday, February 10 2012
97 Provide missing round function for solaris 8 & 9 was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 9:55 PM

    Floris Bruynooghe updated this ticket at February 8th, 2012 @ 01:47 PM

    Hi, I must admit I've been guilty of submitting the patch before running it on our build...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 9:52 PM

    Re: [psycopg #97] Provide missing round function for solaris 8 & 9

Wednesday, February 08 2012
97 Provide missing round function for solaris 8 & 9 was updated
  • Floris Bruynooghe
    Floris Bruynooghe commented at 1:47 PM

    Hi, I must admit I've been guilty of submitting the patch before running it on our build system (I did submit this in the middle between an upgrade from 3.4.2 t...

  • Daniele Varrazzo
    • State changed from new to open
    by Daniele Varrazzo at 12:28 PM

    Hello Floris, thank you for the patch, it's very welcome.

    I've found in http://wiki.opencsw.org/porting-faq that there should be constants to detect the SunOS v...

Tuesday, February 07 2012
97 Provide missing round function for solaris 8 & 9 was updated
  • Floris Bruynooghe
    Floris Bruynooghe commented at 6:32 PM

    The previously attached patch was for 2.4.2, sorry about that. This one is updated for 2.4.4.

  • Floris Bruynooghe
    Floris Bruynooghe created the ticket at 6:07 PM

    The config.h file contains a round() function to use when the platform is missing it. However the conditions assume solaris has round. On our servers we found o...

Wednesday, February 01 2012
96 "pgcode" should be present in exception.args was updated
  • Piotr Czachur
    Piotr Czachur commented at 1:08 PM

    After some thoughts, I agree that enhancment it would provide would be supressed by backward incompatibilitiy issues, so leaving it as it is, is the best choice...

Monday, January 30 2012
96 "pgcode" should be present in exception.args was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 6:15 PM

    The pgcode may be important, but I suspect now it would mostly break other people code (only at visualization level, but knowing from the past I'd say it would ...

  • Piotr Czachur
    Piotr Czachur commented at 6:06 PM

    Daniele,

    Pros:
    * When you log exception, you see also pgcode, which may be important (error messages can change, while pgcode should remain unchanged (user's st...

  • Daniele Varrazzo
    • State changed from new to hold
    by Daniele Varrazzo at 1:42 PM

    If we put stuff in args, it ends up being printed everywhere, changing the current behaviour of the exception:

    In [1]: class MyException(Exception): pass
       .....
94 FixedOffsetTimezone repr is wrong for negative offsets was updated
  • Menno
    Menno commented at 1:53 PM

    Sorry, I haven't used git much outside of "git svn".

    Thanks for taking the changes.

  • Daniele Varrazzo
    • State changed from open to resolved
    by Daniele Varrazzo at 1:22 PM

    Committed. Note that your patches fails to apply with "git am", so I have to do some copypaste to keep the attribution: it would be great if you could use git f...

  • Menno
    Menno commented at 12:31 PM

    Oops, patched attached now.

  • Menno
    Menno commented at 12:27 PM
95 Cache FixedOffsetTimezone instances was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 1:32 PM

    Merged, thank you!

Sunday, January 29 2012
96 "pgcode" should be present in exception.args was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 7:40 PM

    Why it would be handy? Can you make an example? Thanks.

94 FixedOffsetTimezone repr is wrong for negative offsets was updated
  • Daniele Varrazzo
    • State changed from new to open
    by Daniele Varrazzo at 7:38 PM

    Thanks Menno, but you forgot to apply the patch! :)

93 Shadowed datetime test was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 7:36 PM

    Applied, thanks.

Friday, January 27 2012
96 "pgcode" should be present in exception.args was created
  • Piotr Czachur
    Piotr Czachur created the ticket at 10:31 AM

    Now only exception message is present in exception.args.
    It would be handy if pgcode was passed to Psycopg2 exception constructor, so it would be available in e...

Wednesday, January 25 2012
95 Cache FixedOffsetTimezone instances was created
  • Menno
    Menno created the ticket at 4:42 PM

    The attached patch avoids creating a new FixedOffsetTimezone instance if one with the same offset and name has been created before. This will save memory when r...

94 FixedOffsetTimezone repr is wrong for negative offsets was created
  • Menno
    Menno created the ticket at 4:39 PM

    For offsets west of UTC the repr of FixedOffsetTimezone shows a positive and confusing offset value. The offset used during passed to init is not the offset sho...

93 Shadowed datetime test was created
  • Menno
    Menno created the ticket at 4:01 PM

    One of the tests in test_dates.py has a name which collides with another test. The trivial patch attached fixes the issue. The shadowed test was perfectly valid...

Thursday, January 19 2012
92 mogrify silently truncates on null characters was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 1:04 AM

    I think it an expected behaviour: PostgreSQL internally uses mostly - or maybe uniquely - zero-terminated strings when dealing with text: only bytea can store z...

Wednesday, January 18 2012
92 mogrify silently truncates on null characters was created
  • Dave Vitek
    Dave Vitek created the ticket at 4:58 PM

    I'm using version 2.3.2 with postgres 9.0. I apologize if this has been addressed already.

    I'm making use of the NOTIFY command and was recently doing some test...

Saturday, January 14 2012
90 psycopg exceptions cannot be pickled was updated
  • Daniele Varrazzo
    • State changed from open to resolved
    by Daniele Varrazzo at 6:11 PM

    Fixed in my branch.

Friday, January 13 2012
91 double free or corruption was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 11:45 AM

    Ok, nice you have fixed the problem.

    The cursors are not thread safe: you did good to use a different one for each thread. It would be nice if they didn't crash...

  • Andrew Nystrom
    Andrew Nystrom commented at 10:09 AM

    Yes, the message on http://bugs.python.org/issue13741 was mine. I seem to have fixed the problem though. In the version that crashed, all the clients (there's a...

Thursday, January 12 2012
90 psycopg exceptions cannot be pickled was updated
Wednesday, January 11 2012
91 double free or corruption was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 3:58 PM

    With some google-fu I've found: http://bugs.python.org/issue13741 with the additional info:

    This program crashes after 12-24 hours of running.  My OS is Ubuntu...
  • Daniele Varrazzo
    Daniele Varrazzo commented at 3:44 PM

    Is this example self-contained?

  • Psycopg website
    Psycopg website created the ticket at 1:59 PM

    Submitted by: BlendsInWell

    Here's the error:
    glibc detected /usr/bin/python: double free or corruption (!prev): 0x0000000001c24710 *** ======= Backtrace: ======...

90 psycopg exceptions cannot be pickled was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 3:38 PM

    Yeah, makes entirely sense.

    I think it would be fine if we set cursor to None on pickle: because of the exception, we can say nobody has ever used pickle + exce...

  • Federico Di Gregorio
    Federico Di Gregorio commented at 1:39 PM

    They are because when the exception propagates up the call stack you may want to issue a ROLLBACK from a piece of code that doesn't have an easy way to obtain t...

  • Daniele Varrazzo
    • State changed from invalid to open
    by Daniele Varrazzo at 1:33 PM

    Uhm... reading back, I see what you mean. Sorry, I see now you just want to pickle the exception.

    I think it can be done if the cursor is dropped from it. Will ...

  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 1:08 PM

    It's not possible to pickle a connection nor a cursor because the connection wraps an open socket, which has a state that can't be pickled. It's not just a prob...

  • Faheem Mitha
    Faheem Mitha created the ticket at 11:39 AM
    import psycopg2
    conn = psycopg2.connect("dbname='somedb'")
    cur = conn.cursor() 
    try:
        cur.execute("SELECT * FROM barf")
    except Exception, e:
        print e
       ...
Tuesday, January 10 2012
88 Use lo_creat() when possible instead of lo_create() was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 9:58 PM

    Patch merged, thanks.

  • Daniele Varrazzo
    Daniele Varrazzo commented at 12:47 AM

    Hi Giovanni,

    would you mind raising the question to the mailing list? It will get a much wider attention, including pgpool developers and people who know better...

89 Feature: add an "execute()" method on the Connection object was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 8:23 PM

    No, I don't think it is a good idea: it saves you a single line of code (which is not the design guideline of python systems) at the expense of writing code tha...

  • Samuel PHAN
    Samuel PHAN created the ticket at 2:54 PM

    Is it a good idea to add an "execute()" method on the Connection object, to avoid calling the "cursor()" and then an "cursor.execute()" method ?

    I know it's non...

release-2.3.1 was updated by Daniele Varrazzo at 2:11 AM
 
0 of 1 tickets remain in this milestone
python3 was updated by Daniele Varrazzo at 2:10 AM
 
0 of 2 tickets remain in this milestone
85 Row type is not the expected one, depending on the used factory connection was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 2:10 AM

    cursor.next() is not part of the public interface, but an implementation detail: the cursor is iterable (you can call iter() on it), the fact it is also an iter...

86 KeyError on psycopg2.extras.register_hstore() was updated
  • Daniele Varrazzo
    • State changed from new to hold
    by Daniele Varrazzo at 1:48 AM

    As it says on the tin, RealDictCursor is "extremely specialized and does not allow the normal access (using integer indices) to fetched data". It basically viol...

84 cursor.fetchmany() requires the "size" argument instead of using curs.arraysize was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 1:35 AM

    Thank you for reporting. Fixed in my devel branch.

Monday, January 09 2012
88 Use lo_creat() when possible instead of lo_create() was created
  • giomasce
    giomasce created the ticket at 10:34 PM

    Hi.

    I'm using psycopg2 against a PostgreSQL database replicated using pgpool-II. On this database I also need large objects support. Apparently pgpool-II is abl...

87 psycopg2.connect fails when using spaces in password-keyword was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 12:19 PM

    Yup: fixed in 2.4.3.