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, September 25 2012
131 connection_factory ignored was updated
  • Adrian Klaver
    Adrian Klaver commented at 10:58 PM

    I not quite sure what that changes. In both cases you end up with:

    return _connect(dsn, connection_factory=connection_factory, async=async)
    

    It would seem that...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:34 PM

    I propose the attached patch. Is that ok?

  • Adrian Klaver
    Adrian Klaver commented at 10:32 PM

    Per my example from 2.4.2, in the past the code did choke on improper arguments. I am all for restoring the previous behavior. When someone explicitly calls for...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:13 PM

    Yes, actually it is. I cannot remember exactly in which case the c implementation would have swallowed the keyword arguments, apparently not in all of them. Quo...

  • Adrian Klaver
    Adrian Klaver commented at 9:38 PM

    I thought I was following, now I am not sure:) Is it considered a bug that the connection_factory argument is wrong and the connection still can be made?

    FYI us...

3 earlier changes…
  • Daniele Varrazzo
    Daniele Varrazzo commented at 9:28 PM

    Actually no: the comment in connect() says it was done on purpose: when we added the keyword passthrough we reproduced the same bugs.

    I want to clean up the pil...

  • Daniele Varrazzo
    • State changed from new to open
    by Daniele Varrazzo at 9:08 PM

    You are right. The behaviour is probably changed when we have started passing keyword arguments through to the libpq. You can either specify a conninfo string (...

  • Psycopg website
    Psycopg website created the ticket at 8:34 PM

    Submitted by: Adrian Klaver

    psycopg2 ver 2.4.5

    When creating a connection:

    con=psycopg2.connect(DSN,coection_factory=psycopg2.extras.RealDictConnection)

    mangli...

Saturday, September 22 2012
125 Pool broken for zope was updated
  • Wolfgang Eibner
    Wolfgang Eibner commented at 8:32 PM

    Hi,

    it will take me some time to test/fix this because I'll be not at the office till Thursday and I'm very busy at the moment.

    Best regards,
    Wolfgang

Thursday, September 20 2012
123 ZPsycopgDA2 was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 2:45 PM

    I have some other improvements for zope, see ticket #125. But I will need some help to test with a page calling two ZSQLMethods: I don't know how to set it up.

125 Pool broken for zope was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 2:43 PM

    I've fixed the menu for add/edit pages showing all the available isolation level. Note that the default is "repeatable read" because in postgres 9.1 serializabl...

Wednesday, September 19 2012
127 psycopg2 extension fails to compile with clang was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 11:15 PM

    I've tried installing clang on ubuntu and compiling psycopg and found no problem (I was signaled a warning unrelated to what you have reported here, and I'm wor...

  • Daniele Varrazzo
    • State changed from new to open
    by Daniele Varrazzo at 5:49 PM

    Provide a patch then. You are the clang user.

  • Psycopg website
    Psycopg website created the ticket at 3:58 PM

    Submitted by: Bradley Saulteaux

    building 'psycopg2._psycopg' extension

    clang -march=corei7-avx -O3 -ffast-math -fPIC -Wimplicit -DPSYCOPG_DEFAULT_PYDATETIME=1 -...

128 setup.py egg_info fails if development libraries are missing was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:37 PM

    We don't support directly pip and have no idea of the manifest, metadata or whatever dependency tracker uses. Feel free to provide a patch to fix your problem.

  • akaihola
    akaihola created the ticket at 6:22 PM

    I have a server where outbound HTTP traffic is intentionally prohibited. When deploying my web app, I'm downloading Python package dependencies on another host ...

126 Possible bug in cursor iterator was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 5:48 PM

    Talked with the guy: he was using the cursor for other queries too, clearing the internal state.

  • Daniele Varrazzo
    Daniele Varrazzo commented at 3:53 PM

    It is more likely that you are calling execute on one cursor and iterating on another one.

  • Federico Di Gregorio
    Federico Di Gregorio commented at 3:46 PM

    It could be a bug but without the full script it's difficult to tell. Can you post it instead of just copy and pasting some lines, please?

  • Psycopg website
    Psycopg website created the ticket at 3:41 PM

    Submitted by: Pietro Delsante <pietro.delsante at gmail.com>

    Hello,

    I have a script that uses psycopg2 2.4.5 (OS is Ubuntu 12.04, psycopg2 was installed from Ub...

125 Pool broken for zope was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 2:01 PM

    Oh, I see. In PG the serializable and repeatable read used to be the same, since 9.0 iirc serializable became stronger and the previous semantics is available a...

  • Wolfgang Eibner
    Wolfgang Eibner commented at 12:49 PM

    Sorry for the bad formatting and there was also an error:

    At my postgresql database (version 8.2) the mapping is as following:

    • 0 results in "SET default_transa...
  • Wolfgang Eibner
    Wolfgang Eibner commented at 12:45 PM

    Regarding the isolation level:

    In ZPsycopgDA/dtml/edit.dtml serializable is referenced as value 2 (but it has 4):
    <option value="2"

                <dtml-if expr="...
86 KeyError on psycopg2.extras.register_hstore() was updated
  • Samuel PHAN
    Samuel PHAN commented at 8:31 AM

    Cool, congratz Daniele ! ;-)

Tuesday, September 18 2012
86 KeyError on psycopg2.extras.register_hstore() was updated
  • Daniele Varrazzo
    • State changed from hold to resolved
    by Daniele Varrazzo at 8:03 PM

    This issue was fixed in my devel. To be released in 2.4.6.

    Duplicate of issue #114.

125 Pool broken for zope was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 5:25 PM

    Thank you for the analysis, Wolfgang.

    As you describe it, seems that most of the mess happens in ZPsycopgDA/db.py

    • inconsistent isolation level
    • resetting the cl...
  • Wolfgang Eibner
    Wolfgang Eibner commented at 5:06 PM

    Hm, after some quick investigation I think the problem is located at another place. Your patched block gets never called cause get_transaction_status() returns ...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 12:32 PM

    An optional solution would be to replace entirely PersistentConnectionPool.putconn and not invoke _putconn, but it leads to some code duplication.

    For me, any s...

  • Federico Di Gregorio
    Federico Di Gregorio commented at 12:18 PM

    Zope has its own transaction management: like any sensible web framework the transaction is rolled back on errors, and commited just before sending the HTTP res...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 12:14 PM

    Attached proposed patch to fix the issue

1 earlier change…
  • Daniele Varrazzo
    Daniele Varrazzo created the ticket at 12:13 PM

    Apparently the connection pool rolling back connections in transaction (ticket #62) has broken the zope adapter (see ticket #123 and ML message http://archives....

123 ZPsycopgDA2 was updated
  • Wolfgang Eibner
    Wolfgang Eibner commented at 1:22 PM

    I'll try but I have to do it on a test machine because my initial error on the production machine is currently not happening any more and I don't want to destab...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 12:16 PM

    Open ticket #125 to track the issue of the rollback with psycopg 2.4.5. Wolfgang, can you please test the patch attached? Thank you.

  • Daniele Varrazzo
    Daniele Varrazzo commented at 11:13 AM

    Hello Wolfgang,

    The change in the pool you mention was probably ticket #62, introduced in psycopg 2.4.3.

    As you describe it, that change has totally broken psyc...

  • Wolfgang Eibner
    Wolfgang Eibner created the ticket at 8:56 AM

    Hi,

    we've encountered a strange Zope / ZPsycopgDA2 problem in the last days: It happens very rarely (more often if a lot of concurrent users use our Zope applic...

118 Error in register_composite python 3 was updated
  • Daniele Varrazzo
    • State changed from new to hold
    by Daniele Varrazzo at 10:57 AM

    Joshua, no answer? I'm putting the ticket on hold as it works for me and I suspect you just didn't install psycopg correctly. If you can still reproduce the bug...

122 need commercial license was updated
124 Add JSON adapter/typecaster was created
  • Daniele Varrazzo
    Daniele Varrazzo created the ticket at 9:26 AM
    1. Add a register_json function to create a json typecaster with provided/sniffed oids and provided loads() function.
    2. Use it to initialize JSON/JSON[] typecasters...
Friday, September 14 2012
122 need commercial license was created
  • Psycopg website
    Psycopg website created the ticket at 5:25 PM

    Submitted by: vishnu

    Please call in 414 2360310

Thursday, September 13 2012
121 can't import from compile source was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 9:09 AM

    Cool, glad you solved your problem. Next time, for such kind of discussion, try the mailing list, where other people with the relevant knowledge may help you ev...

  • Stephen Lukacs
    Stephen Lukacs commented at 6:04 AM

    i have been using linux for 15 years. rpms help make sense of all of the packages and yum, and like, help with all of their dependencies. the whole reason i jum...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 12:34 AM

    If libpq is in a non standard place you will have to figure out how to make _psycopg.so find it: that sounds a LD_LIBRARY_PATH job, i.e. not a pleasant one. Why...

Wednesday, September 12 2012
121 can't import from compile source was updated
  • Stephen Lukacs
    Stephen Lukacs commented at 5:15 PM

    and under /lib there is:

    lrwxrwxrwx 1 root root 21 Sep 3 04:35 libgssapi_krb5.so.2 -> libgssapi_krb5.so.2.2
    -rwxr-xr-x 1 root root 255968 Jul 31 14:58 libgssapi...

  • Stephen Lukacs
    Stephen Lukacs commented at 5:09 PM

    oh and i forgot to add ldd libpq.so, which returns:

    linux-gate.so.1 =>  (0x0049a000)
    libssl.so.10 => /usr/lib/libssl.so.10 (0x00407000)
    libcrypto.so.10 => /usr...
  • Stephen Lukacs
    Stephen Lukacs commented at 5:07 PM

    ok, so when i do ldd _psycopg2 under /usr/lib/python2.6/site-packages/psycopg2, i get

    linux-gate.so.1 =>  (0x00c8a000)
    libpython2.6.so.1.0 => /usr/lib/libpytho...
  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:05 AM

    Google provides several hits for "undefined symbol: GSS_C_NT_HOSTBASED_SERVICE". They seem related to the libpq and gssapi. The answers are usually "don't compi...

  • Stephen Lukacs
    Stephen Lukacs created the ticket at 4:36 AM

    i can not import psycopg2 into python 2.6.6 running on centos 6.3 with the upgraded rpms of postgresql 9.1. i downloaded the source for psycopg2 and it compiled...

Tuesday, August 28 2012
117 Memory not released immediately with named cursors was updated
Sunday, August 19 2012
119 psycopg2-2.4.5 - and PostgreSQL 9.1.4, cannot get libpq.so.5 linked in was updated
  • Lou Picciano
    Lou Picciano commented at 12:54 PM

    Federico, Again, thank you for your notes.

    Respectfully, I think I may be actually getting it right... I do wish to link dynamically to libpq

    Showing results wi...

Saturday, August 18 2012
117 Memory not released immediately with named cursors was updated
  • flox
    • Title changed from Memory leak with named cursors to Memory not released immediately with named cursors
    by flox at 8:49 AM