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)

Thursday, December 02 2010
release-2.3.1 was created by Daniele Varrazzo at 8:19 PM
 
0 of 1 tickets remain in this milestone
23 Unable to compile on CentOS 5.5 x86_64 was created
  • Psycopg website
    Psycopg website created the ticket at 5:38 PM

    Submitted by: Jon

    This is what I get when I try to compile on CentOS 5.5 x86_64:

    gcc -pthread -shared build/temp.linux-x86_64-2.4/psycopg/psycopgmodule.o build/...

Wednesday, December 01 2010
3 Support notifications payload was updated
2 dict-hstore adaptation was updated
1 Two-phase commit support was updated
Friday, November 26 2010
20 Building psycopg2 for Python 2.7 on Windows XP was updated
  • Daniele Varrazzo
    • Tag changed from msvc90.dll rel-2.2.2, apache, mingw, msvcrt.dll to apache, mingw, msvc90.dll, msvcrt.dll, rel-2.2.2
    by Daniele Varrazzo at 11:39 AM

    As a reference, here is a thread discussing about the issue on the modwsgi group.

    I've informed Jason about the issue: let's see if he knows how to come out th...

  • Psycopg website
    Psycopg website created the ticket at 6:43 AM

    Submitted by: mirco

    Install psycopg2 from binary package psycopg2-2.2.2.win32-py2.7-pg9.0.1-release.exe (Windows download from official site http://initd.org/ps...

Thursday, November 25 2010
19 Missing cursor.isready and cursor.fileno in 2.3.0 was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 12:08 PM

    Hello,

    isready() was dropped in the async overhaul performed in psycopg 2.2 release.

    fileno() was moved from the cursor to the connection, as it is the connecti...

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

    Submitted by: Paul Reznicek

    Hello,
    There are no more isready and fileno in cursor, so that using select to wait for notify make problems. Fileno can be used fro...

Thursday, November 18 2010
12 [PATCH] Add isolation level for BEGIN READ ONLY was updated
  • Daniele Varrazzo
    • State changed from open to invalid
    by Daniele Varrazzo at 1:15 AM

    After further analysis I think, if the "read only" feature is to be introduced, set_isolation_level is not the correct place. The command issued to the database...

Wednesday, November 17 2010
18 pip -e /path/to/psycopg2: psycopg/connection_type.c:810: error: ‘psyco_conn_g... was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 10:47 PM

    Pip is doing something wrong: I see both -O2 and -O3 specified in the command line and -Wdeclaration-after-statement repeated twice.

    The reason for compiling fa...

  • Psycopg website
    Psycopg website created the ticket at 7:09 PM

    Submitted by: Jeff Kowalczyk

    When I try to build psycopg2 with a pip -e /path/to/psycopg2, I get the following error:

    psycopg/connection_type.c:810: error: 'psy...

16 The connection setup can be optimized was updated
  • Daniele Varrazzo
    • State changed from open to resolved
    by Daniele Varrazzo at 3:00 AM

    Done in branch no-p2

Tuesday, November 16 2010
17 Test ticket was updated
Monday, November 15 2010
17 Test ticket was created
  • Psycopg website
    Psycopg website created the ticket at 4:41 PM

    Submitted by: piro

    Test ticket to understand lighthouse subscriptions: please ignore.

11 Tests not runnable from the sdist. was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 9:37 AM

    Makefile improved.

7 sefault on mogrify with a Decimal was updated
  • Nate C
    Nate C commented at 2:27 AM

    Thanks, that worked for me. (I wish they would upgrade python on these machines I have to work on! ;)

Saturday, November 13 2010
16 The connection setup can be optimized was created
  • Daniele Varrazzo
    Daniele Varrazzo created the ticket at 8:40 PM

    We can drop two roundtrip with the server per connection:

    • SET DATESTYLE TO 'ISO' is retundant if we detect that the DateStyle setting is as we like, and we ca...

12 [PATCH] Add isolation level for BEGIN READ ONLY was updated
  • Daniele Varrazzo
    • Tag set to patch
    by Daniele Varrazzo at 3:48 AM
  • Daniele Varrazzo
    • State changed from new to open
    by Daniele Varrazzo at 3:48 AM

    I like the idea and would like to apply the patch. It needs documentation and testing though: would you be able to provide them?

    Thank you very much.

    On a side ...

13 [PATCH] Add socket_fd to connection object was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    • Tag set to patch
    by Daniele Varrazzo at 3:27 AM

    The method connection.fileno() already returns the socket fd (furthermore its name allows to put the connection straight into a select).

15 [PATCH] Mention connection object in debug logs was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    • Tag set to debug patch
    by Daniele Varrazzo at 3:22 AM

    Applied, thanks

14 [PATCH] Use pthread_self() instead of getpid() in Dprintf was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    • Tag set to patch debug
    by Daniele Varrazzo at 3:06 AM

    Thank you, but I am reluctant to apply this patch because:
    1. it doesn't work on Windows: pthread_self must be #defined to GetCurrentThreadId. I don't know abou...

Thursday, November 11 2010
6 _PQBackendPID error on Mac OS X SL was updated
  • Charlie_X
    Charlie_X commented at 6:40 PM

    ============

    Introduction

    My advice is to use MacPorts <http://macports.org>__ or something similar for installing Python and Postgres. There are several reason...

  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 11:59 AM

    Closing this ticket as it's not a bug. Please use this article as a reference: we can continue the discussion there as it is a more visible place.

9 reversed order of db notices was updated
  • Daniele Varrazzo
    • State changed from open to resolved
    • Milestone set to release-2.3.0
    by Daniele Varrazzo at 11:56 AM

    Fixed in my branch, thank you.

7 sefault on mogrify with a Decimal was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 1:01 AM

    The bug is fixed in the current repository. It only affects Python 2.5.0 and 2.5.1.

    If you want to test on windows, you can use this unofficial build for windo...

Tuesday, November 09 2010
11 Tests not runnable from the sdist. was created
  • Daniele Varrazzo
    Daniele Varrazzo created the ticket at 2:37 PM

    The sdist doesn't include Makefile and runtests.py.

    The two are probably too broken to be useful anyway, so eventually just document how to set up a testing env...

9 reversed order of db notices was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 12:39 PM

    Uhm, I mixed notices and notifies: I think they both have the same efficiency problem.

    The temporary notice_pending can definitely be fixed, thank you for the r...

  • Marko Kreen
    Marko Kreen commented at 12:21 PM

    Considering the notices are mostly debugging aid, I would not worry about efficiency too much.

    But the reordering problem makes it hard to do even debugging, wh...

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

    You are right, and using conn.notifies.pop(0) (or insert(0) when adding items) is inefficient. Probably we should use collections.deque and appendleft() on our ...

  • Psycopg website
    Psycopg website created the ticket at 10:50 AM

    Submitted by: marko kreen

    when one statement issues several notices,
    they appear in reversed order in .notices list. the reason is that they are prepended to te...

10 pointless string manipulation in NamedTupleCursor was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 11:18 AM

    You are right, fixed in my repository.

  • Psycopg website
    Psycopg website created the ticket at 10:53 AM

    Submitted by: marko kreen

    instead of passing column array to namedtuple() as array, it is comverted to string, which must be parsed immediately.

6 _PQBackendPID error on Mac OS X SL was updated
5 Adaptation doesn't respect Liskov invariance was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    • Milestone set to release-2.3.0
    • Milestone order changed from 2 to 0
    by Daniele Varrazzo at 12:40 AM

    Feature implemented. Not released in 2.3.0-beta1, but it should in the next release.

7 sefault on mogrify with a Decimal was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 12:30 AM

    Nate,

    I've found the cause of the crash: the Decimal adapter incorrectly assumed the existence of the is_finite() method: it was actually introduced somewhere a...

Monday, November 08 2010
8 Errore in Select.select was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 5:32 PM

    Hi Marco,

    there was a change in the async interface in psycopg2 2.2: the object you should put in the select is the connection, not the cursor.

    We know this bro...

  • Psycopg website
    Psycopg website created the ticket at 5:14 PM

    Submitted by: Marco Cassiano

    N.B Errore già presente anche sulla 2.2.2

    select.select (indipendentemente dalla versione di Postgres, 8.4 o 9.0.1) fallisce sulla ...

Saturday, November 06 2010
3 Support notifications payload was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 6:37 PM

    Hi,

    the example in the notify section is actually misleading. pid and channel are only accessed as [0] and [1] for backward compatibility. Take a look at the N...

  • Kevin
    Kevin commented at 5:10 PM

    Cool, sorry for the dumb question, it may not go here, but:

    while conn.notifies:
      print type(conn.notifies)
      noti = conn.notifies.pop()
      print "Got NOTIFY:"...
  • Daniele Varrazzo
    Daniele Varrazzo commented at 4:30 PM

    We have just released 2.3.0-beta1: the version includes this feature.

release-2.3.0 was updated by Federico Di Gregorio at 2:32 PM 1 more event
&nbsp;
0 of 8 tickets remain in this milestone
4 Add namedtuple connection/cursor was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    • Milestone set to release-2.3.0
    • Milestone order changed from 1 to 0
    by Daniele Varrazzo at 2:01 PM

    Namedtuple cursor added to psycopg2.extras.

6 _PQBackendPID error on Mac OS X SL was updated