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.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

Activity (RSS)

Sunday, April 10 2011
50 Codec error with psycopg 2.4 and django 1.3 was updated
Tuesday, April 05 2011
49 to_timestamp not working in 2.4 was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 7:46 AM

    No the behavior is perfectly known and we consider it correct. When you pass a date object to psycopg it creates a postgres date, not an unknown literal, by add...

  • Mark Lakewood
    Mark Lakewood commented at 1:49 AM

    Hi Daniele,

    The %s::timestamp does work, so im fine.

    I guess its just a bit strange for postgresql to accept the sql but for psycopg2 to not accept it. Might be...

Monday, April 04 2011
49 to_timestamp not working in 2.4 was updated
  • Mark Lakewood
    Mark Lakewood commented at 1:28 AM

    Hi Daniele,

    Sorry, I should've put the SQL in to make it easier

    SELECT COUNT(timestamp), album_artist, track_name, music_playlist.name

            FROM music_song_...
Sunday, April 03 2011
49 to_timestamp not working in 2.4 was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 11:06 PM

    PostgreSQL is now (since before 2.4) more strict about types. You are passing a Python date to psycopg, so psycopg is passing a date to postgres. There is no fu...

  • Psycopg website
    Psycopg website created the ticket at 4:44 AM

    Submitted by: Mark Lakewood

    Hi all.

    Im running a raw sql query through django 1.2.5 that uses the to_timestamp() postgres function. in psycopg2 2.0.x it works. ...

Monday, March 28 2011
48 Interface error: decoding empty BYTEA was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 1:13 PM

    By the way, your analysis was correct: the check str[0] is wrong when len == 0.

    The libpq allocates at least one byte to avoid a non portable malloc(0). I was i...

Saturday, March 26 2011
47 Can only specify static-libpq in setup.cfg was updated
  • Daniele Varrazzo
    • State changed from open to resolved
    by Daniele Varrazzo at 1:42 PM

    I'm merging the patch. However for me (on ubuntu) the compiled library doesn't work:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ...
48 Interface error: decoding empty BYTEA was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 1:22 PM

    Just pushed our own bytea hex parser, there is no more need of a specific libpq version on the client.

    I've added a specific test for '\x' to be parsed correctl...

Wednesday, March 16 2011
48 Interface error: decoding empty BYTEA was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 4:36 PM

    Thank you for the patch, but I think a safer approach would be to ditch entirely the libpq unescape and deal with the hex format ourselves - it is an easy to pa...

  • Adam Petrovic
    Adam Petrovic commented at 4:29 PM

    We're using PGRPMS on CentOS - so wen can run pg 8.4 and 9.0. But on this server there's only v9.0.
    Like I said - once it raised those errors and for the second...

  • Daniele Varrazzo
    • Tag changed from rel-2.4 to bytea, rel-2.4
    by Daniele Varrazzo at 3:04 PM

    I don't think the libpq can retain data across different invocations of a python process: its state should be cleaned when the process terminates.

    It still smel...

  • Adam Petrovic
    Adam Petrovic commented at 2:06 PM

    Yes, linked libpq is ok

    ldd /usr/lib/python2.4/site-packages/psycopg2/_psycopg.so
    libpq.so.5 => /usr/pgsql-9.0/lib/libpq.so.5 (0xb7824000)
    

    Unfortunately I can...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 12:06 PM

    Hello,

    the check should be correct: an encoded empty string correctly decoded should have input s="\x" and output str="", so the check str[0] == 'x' should fail...

1 earlier change…
  • Psycopg website
    Psycopg website created the ticket at 11:22 AM

    Submitted by: Adam Petrovic

    Hi,

    I'm getting InterfaceError when selecting BYTEA data from custom function. Whole error is:
    InterfaceError: can't receive bytea d...

47 Can only specify static-libpq in setup.cfg was updated
  • Daniele Varrazzo
    • Tag set to patch, setup
    • State changed from new to open
    by Daniele Varrazzo at 12:07 PM

    Thanks, I think there is no problem in merging the patch.

Wednesday, March 09 2011
47 Can only specify static-libpq in setup.cfg was created
  • Matthew Ryan
    Matthew Ryan created the ticket at 5:09 PM

    This is extant in the current 2.4 release.

    The current setup.py only allows setting the static-libpq option
    via the setup.cfg, and doesn't accept it on the setu...

Tuesday, March 08 2011
46 SystemError on empty query was updated
  • Daniele Varrazzo
    • State changed from open to resolved
    by Daniele Varrazzo at 2:51 PM

    Fixed in my devel branch.

Friday, March 04 2011
46 SystemError on empty query was updated
  • Daniele Varrazzo
    • Tag changed from rel-2.3.2 to rel-2.3.2, rel-2.4
    by Daniele Varrazzo at 8:33 PM

    I'm on the issue.

Thursday, March 03 2011
46 SystemError on empty query was created
  • Daniele Varrazzo
    Daniele Varrazzo created the ticket at 8:28 PM

    From Eric Snow:

    >>> cur.execute(";")
    Traceback (most recent call last):
     File "<stdin>", line 1, in ?
    SystemError: null argument to internal routine
    
Wednesday, March 02 2011
20 Building psycopg2 for Python 2.7 on Windows XP was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 3:19 PM

    Thank you very much jerrys. And thank you Jason: great job as usual.

  • jerrys
    jerrys commented at 2:39 PM

    After my positive comment above, I did find a somewhat anomalous situation where my hand built version failed. I tried this new build in a variety of settings, ...

Tuesday, March 01 2011
20 Building psycopg2 for Python 2.7 on Windows XP was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:43 AM

    Psycopg 2.4 has been released: Jason has changed the way it is built to try to cope with the problem reported.

    We got no feedback about the 2.4 beta, so we have...

Sunday, February 27 2011
20 Building psycopg2 for Python 2.7 on Windows XP was updated
  • jerrys
    jerrys commented at 5:59 PM

    I just used the roadmap in the initial posting, ending in
    python setup.py build_ext --compiler=mingw32 install

    . Python 2.6 Windows 7 Professional mod_wsgi-win3...

Saturday, February 26 2011
29 eggify ZPsycopgDA was updated
  • Pumukel
    Pumukel commented at 2:30 PM

    Hi Daniele,

    Ok, lets try to clear all questions:
    psycopg2da is something I don't know and haven't used before. ZPsycopgDA is a very good integration of psycopg2...

Friday, February 25 2011
29 eggify ZPsycopgDA was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 11:24 PM

    Great description, Pumukel, thanks.

    I would love to integrate your work into the library. But I simply don't understand the entire life cycle of a Product, so I...

45 Incorrect hstore oid query was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 12:41 AM

    No, no strong reason, and thinking about it it's no problem to register the typecaster on all the hstore oids found in the different namespaces.

    https://github....

Thursday, February 24 2011
29 eggify ZPsycopgDA was updated
  • Pumukel
    Pumukel commented at 9:27 PM

    That ticket ist still open, and maybe a more git familar person might try to solve it be recipe:

    Today, for most Zope/Plone users zc.buildout is the common way ...

45 Incorrect hstore oid query was created
  • Psycopg website
    Psycopg website created the ticket at 7:16 PM

    Submitted by: IZ

    You use the following query to detect the presence of the hstore type in a database:

    SELECT t.oid, %s
    FROM pg_type t JOIN pg_namespace ns

    ON t...
Monday, February 21 2011
44 Python import error libpq.so.5: was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 12:03 PM

    You should probably add your non-standard library to the LD_LIBRARY_PATH to allow the linker to find it:

    $ ldd /home/piro/src/psycopg2/build/lib.2.6/psycopg2/_...
  • Daniele Varrazzo
    Daniele Varrazzo commented at 11:41 AM

    The buildbot tests the lib the same way (postgres compiled in /usr/local/somewhere) so I expect it to work.

    Please try with a "make clean", "make" in the psycop...

  • Psycopg website
    Psycopg website created the ticket at 11:24 AM

    Submitted by: Giuseppe Tofoni

    Good Morning

    I have the following problem with psycopg2-2.3.2:

    python 2.6.4 (r264:75706, Dec 5 2009, 21:18:28)
    [GCC 4.3.3] on linu...

Tuesday, February 15 2011
37 copy_from does not stop reading after an error was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 11:30 PM

    From the discussion emerged it seems this is an issue to be solved into the libpq.

39 Support for bind parameters in copy_expert() was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 11:29 PM

    Closing the ticket for the above motivation. If you feel something better should be done please discuss on the mailing list. Thank you very much.

34 Problems installation in windows 7 was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 11:27 PM

    Tried installing psycopg 2.4 beta 2 in windows 7 and found no problem. Given the lack of details this is enough for me to close this ticket.

43 Cannot compile on FreeBSD was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    • Tag changed from rel-2.4-beta2 to freebsd, rel-2.4-beta2
    by Daniele Varrazzo at 9:37 PM
  • Landreville
    Landreville commented at 9:04 PM

    I found the issue. There was a patch on 2.7.1 that introduced a regression bug in compiling extensions on FreeBSD. It will be fixed in 2.7.2.

    Here's the relevan...

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

    Submitted by: Landreville

    When running python setup.py build_ext on FreeBSD I get the following error:
    gcc -pthread -shared ${LDFLAGS} build/temp.freebsd-7.0-RE...

42 Regression bug in 2.4 with empty timestamp arrays was updated
41 2.4beta: server-side ("named") cursors: fetchone should really just fetch one was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    • Tag set to named cursor, iter, rel-2.4.0-beta2
    by Daniele Varrazzo at 9:22 AM

    Hello Jon,

    If you want single rows from the database, you can use cur.fetchone(). The roundtrip optimization only involves iter(cur) (unless I've broken fetchon...

Sunday, February 13 2011
41 2.4beta: server-side ("named") cursors: fetchone should really just fetch one was updated
  • Jon
    Jon commented at 1:44 AM

    I think I may have goofed. I'm not sure, now, under what circumstances this comes into play. I don't see cursor.next() being used in SQLAlchemy. However, I stil...

  • Jon
    Jon created the ticket at 1:38 AM

    Basically, a change in 2.4beta is an "optimization" such that a fetch of one row from a server-side (named) cursor results in the fetch of (up to) 2,000 rows. I...

Saturday, February 12 2011
40 [PATCH] Add negative infinity support for Python->pg conversion was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 8:14 PM

    Thanks Marti: patch merged on my github branch, it will make for Py 2.4 :)

Thursday, February 10 2011
40 [PATCH] Add negative infinity support for Python->pg conversion was created
  • Marti Raudsepp
    Marti Raudsepp created the ticket at 5:19 PM

    Currently Pyscopg does not properly convert Python float negative infinity to PostgreSQL:

      >>> c.mogrify('SELECT %s', [float('-inf')])
      "SELECT 'Infinity'::f...
Tuesday, February 08 2011
38 Review binary typecasters in Py3 was updated
  • Daniele Varrazzo
    • State changed from resolved to invalid
    • Tag set to binary, python3, typecaster
    by Daniele Varrazzo at 11:48 PM

    We eventually decided to not include this patch. I attach it here as documentation in case the need to do something arises.

Monday, February 07 2011
37 copy_from does not stop reading after an error was updated
Sunday, February 06 2011
27 Bug in 2.3.2 when connecting via pgpool? was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 1:53 PM

    I assume there is not much to do and close the ticket.

    I think we can have a chat about how psycopg should behave with middleware on the mailing list.