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)

Wednesday, October 16 2013
186 Error on install psycopg2 in OS X 10.9 mavericks was updated
  • Thiago Avelino
    Thiago Avelino commented at 1:39 PM

    File exist "pyerrors.h":
    avelino@avelino ~/projects/y/jpfm/src (master) $ ll /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/pyt...

  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 9:45 AM

    PyBaseExceptionObject is included in pyerrors.h. If you can't find this file in /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/...

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

    Submitted by: Thiago Avelino thiago@avelino.xxx


    /usr/local/bin/pip run on Tue Oct 15 23:19:25 2013 Downloading/unpacking psycopg2

    Getting page https://pypi.pyt...

Tuesday, October 15 2013
185 connect doesn't support connection URIs was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 10:07 AM

    Psycopg doesn't parse the connection string: it is passed verbatim to the libpq.

    In [3]: psycopg2.connect("postgresql://postgres@localhost:5432/test")
    Out[3]: ...
Monday, October 14 2013
183 DataError when underlying type changes was updated
  • Chad Whitacre
    Chad Whitacre commented at 9:04 PM

    Sounds sensible. Thanks Daniele! :-)

  • Daniele Varrazzo
    Daniele Varrazzo commented at 11:15 AM

    Hello Chad,

    the use case for such subclass is fairly restricted, and I think it would be more the hassle to document it than its general usefulness, not to ment...

185 connect doesn't support connection URIs was created
  • Psycopg website
    Psycopg website created the ticket at 8:52 PM

    Submitted by: Joe F

    According to the documentation for connect:

    The connection parameters can be
    specified as a libpq connection string using the dsn parameter

    ...

184 Reason: image not found was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 10:55 AM

    Most definitely it is some library mix-up on your box.

Sunday, October 13 2013
184 Reason: image not found was updated
Saturday, October 12 2013
183 DataError when underlying type changes was updated
  • Chad Whitacre
    Chad Whitacre commented at 2:13 AM

    Thanks @dvarrazzo. Scoping our register_composite calls to the connection or cursor would narrow the race condition, but wouldn't eliminate it. I'm not sure we ...

Friday, October 11 2013
183 DataError when underlying type changes was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 10:41 PM

    Caching of the attribute is necessary but it's local to the scope you have registered the composite.

    Avoid using register_composite with global=True: use it on ...

  • Psycopg website
    Psycopg website created the ticket at 6:48 PM

    Submitted by: Chad Whitacre (whit537)

    psycopg2 caches the attributes of composite types, so that when the type is altered in the database, the next attempt to c...

Wednesday, October 02 2013
182 Using with gevent causes segfault was updated
  • Vinay Sajip
    Vinay Sajip commented at 5:08 PM

    I can confirm that with your code from the master branch of https://github.com/dvarrazzo/psycopg, the segfault goes away. Thanks!

  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 4:06 PM

    It's in the exception pickling: I think it's caused by bug #170

    Core was generated by `python gwebapp.py'.
    Program terminated with signal 11, Segmentation faul...
  • Vinay Sajip
    Vinay Sajip created the ticket at 3:41 PM

    I have an application using gevent 0.13.8 + psycopg2 2.5.1 which segfaults when an attempt is made to 'green' psycopg using a slight variant of Daniele Varrazzo...

  • Vinay Sajip
    Vinay Sajip edited the ticket at 3:41 PM

    I have an application using gevent 0.13.8 + psycopg2 2.5.1 which segfaults when an attempt is made to 'green' psycopg using a slight variant of Daniele Varrazzo...

Thursday, September 26 2013
181 Arrays of INET type not properly parsed into a list was updated
  • Dave Rawks
    Dave Rawks created the ticket at 10:06 PM

    An array of INET is returned as an unparsed string while and array of TEXT is parsed correctly and returned as a list of strings.
    I tested on 2.5.1 and 2.4.6 an...

  • Dave Rawks
    Dave Rawks edited the ticket at 10:09 PM

    An array of INET is returned as an unparsed string while and array of TEXT is parsed correctly and returned as a list of strings.
    I tested on 2.5.1 and 2.4.6 an...

Friday, September 20 2013
180 Return number of rows for copy operations was updated
  • Federico Di Gregorio
    Federico Di Gregorio commented at 2:05 PM

    If I remember correctly the libpq docs don't say if it is possible to
    retrieve the number of inserted columns and we're not sending data
    line-by-line but as chu...

  • Federico Di Gregorio
    Federico Di Gregorio created the ticket at 2:05 PM

    As asked by Ryan Kelly on the ML:

    I'm wondering if it's possible to get the number of rows copied when
    using copy_from? I would've thought the .rowcount attribu...

179 Mogrify performance on arrays was updated
  • Federico Di Gregorio
    • State changed from invalid to open
    • Tag cleared.
    • Assigned user set to Federico Di Gregorio
    by Federico Di Gregorio at 12:35 PM

    Daniele, wait. He was talking about a simple benchmark and I can see where the bottleneck is. The mogrification of arrays is slow, because the arguments are che...

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

    Thank you for inventing the SQL injection.

    Of course feel free to do it in your app if you know where the input is coming from, but don't even think to suggest ...

172 row_to_json data gets interpreted was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 11:31 AM

    After a chat on the ML, the idea is to leave the json adapter as it is.

    Easy workarounds are to cast json to text and to register the text/unicode adapter on th...

Wednesday, August 28 2013
179 Mogrify performance on arrays was created
  • Psycopg website
    Psycopg website created the ticket at 2:18 PM

    Submitted by: ChrisB

    If I run cursor.mogrify on a 64000 double array it is taking 350ms. If I just do a 'ARRAY[' + ','.join(map(str, array)) + ']' and put it in...

Thursday, August 22 2013
176 Unexpected conversion to server time zone upon inserting non-naïve `datetime.... was updated
Wednesday, August 21 2013
178 Psycopg2 Win Installer Not Working for 32-bit install on 64-bit machine was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 11:12 PM

    On Wed, Aug 21, 2013 at 11:48 PM, Lighthouse <no-reply@lighthouseapp.com> wrote:
    > So i currently have PostgreSQL up and running! Very cool! It only took me abo...

  • Niel
    Niel commented at 10:48 PM

    Hello Gents.

    I posted the following reply yesterday as an attachment, and I thought it was sent, but I guess it didn't. So here it is in its entirety:


    Gentleme...

Tuesday, August 20 2013
178 Psycopg2 Win Installer Not Working for 32-bit install on 64-bit machine was updated
  • Jason Erickson
    Jason Erickson commented at 5:43 PM

    Hi Niel,

    The 32bit install does work on a 64bit OS, so the (good?) news is that is not the issue.

    Since the installer initially finds the Python 3.3 directory, ...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 8:50 AM

    Hello Niel,

    I've forwarded a message to Jason, who is the kind person providing the Windows builds. He may be able to point you in the right direction.

    For what...

  • Niel
    Niel created the ticket at 5:48 AM

    Hello, good folks at psycopg.

    Just tried installing psycopg2 for Windows with the installers located at:

    http://www.stickpeople.com/projects/python/win-psycopg/

    ...
174 server side curosr scrolling out of bound does not raise any Exception (os-li... was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 11:14 AM

    Looking back the specs, they say:

    An IndexError should be raised in case a scroll operation would leave
    the result set.  In this case, the cursor position is l...
  • Daniele Varrazzo
    • State changed from new to open
    by Daniele Varrazzo at 9:50 AM

    You are right: scrolling out-of-bound should raise an exception as per DBAPI.

    Detecting an out-of-bound movement seems easy enough looking at the status (MOVE n...

176 Unexpected conversion to server time zone upon inserting non-naïve `datetime.... was updated
  • Daniele Varrazzo
    • State changed from new to hold
    by Daniele Varrazzo at 10:48 AM

    The current behaviour descends from the way psycopg casts datetime objects and how postgresql reacts to that.

    Psycopg commands result in:

    SET TIMEZONE = 'Ameri...
175 Failed to write in CSV file, even though there is enough space is available was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 8:57 AM

    This looks an internal greenplum error, it's not a psycopg one.

177 DictRow should behave like an OrderedDict? was updated
  • Daniele Varrazzo
    • Tag set to feature
    by Daniele Varrazzo at 8:55 AM

    It's a sort of reasonable expectation, yes. If you provide the implementation for it we would merge it to devel. The best way to contribute is to open a feature...

Sunday, August 18 2013
177 DictRow should behave like an OrderedDict? was created
  • Laurent Fasnacht
    Laurent Fasnacht created the ticket at 2:14 PM

    I think RowDict should behave like an OrderedDict. In particular, I would expect the following to be True:

    [row_dict[k] for k in row_dict.keys()] == list(row_d...
Saturday, August 17 2013
176 Unexpected conversion to server time zone upon inserting non-naïve `datetime.... was created
  • Sam Homerson
    Sam Homerson created the ticket at 5:15 PM

    Upon inserting a non-naïve datetime.datetime object, i.e. one with a time zone, psycopg2 converts the timestamp before inserting it, even if the time zone of th...

Friday, August 16 2013
175 Failed to write in CSV file, even though there is enough space is available was created
  • Psycopg website
    Psycopg website created the ticket at 5:10 AM

    Submitted by: Saravanakumar Karunanithi

    psycopg2.InternalError: bfz_nothing_write_ex write failed with (errno 28) No space left on device (compress_nothing.c:48...

Thursday, August 15 2013
174 server side curosr scrolling out of bound does not raise any Exception (os-li... was created
  • Tony Tan
    Tony Tan created the ticket at 3:16 PM

    Hello I tried using psycopg's server side cursor scroll() function
    When I scroll it with a out of bound value, it does not raise an Exception as the psycopg2 do...

Friday, July 19 2013
172 row_to_json data gets interpreted was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 6:49 PM

    I've written to the mailing list my ideas about the issue. Feel free to take part to the discussion.

    The automatic cast of json was introduced in a major releas...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 5:35 PM

    Mmm, i think you are right, the choice of adapting automatically json is questionable.

    Eric, while we decide how to fix the problem you can disable the automati...

  • Federico Di Gregorio
    Federico Di Gregorio commented at 4:36 PM

    I have to agree. IMHO, the json adapter should exist but its registration should not be automatic.

  • Psycopg website
    Psycopg website created the ticket at 4:28 PM

    Submitted by: eric casteleijn

    Recent versions of Postgres allow returning json from queries. Psycop since version 2.5.0 decided to call json.loads on the query ...

170 Pickling OperationalError causes segfault with Python 2.7.3 was updated
171 Move out of Lighhouse was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 2:00 PM

    Chris, I'm not working on this, I don't think I'll do anything about it in these days.

    If you want to try working at it I'd be very grateful.

    It would be great ...

Thursday, July 18 2013
170 Pickling OperationalError causes segfault with Python 2.7.3 was updated
  • Chris Schmich
    Chris Schmich commented at 11:57 PM

    Hi Daniele,

    Thanks for the quick response, and sorry for being so delayed in mine.

    Your explanation makes sense, and it's consistent with what I'm seeing.

    I'd b...

Monday, July 15 2013
171 Move out of Lighhouse was updated
  • Federico Di Gregorio
    Federico Di Gregorio commented at 8:54 AM

    We can transfer the bugs from Lighthouse to GitHub and just forget about the numbers. If possible we could add a final comment to every lighthouse bug with a li...

Saturday, July 13 2013
170 Pickling OperationalError causes segfault with Python 2.7.3 was updated
  • Daniele Varrazzo
    • State changed from new to open
    • Tag set to rel-2.5.1
    by Daniele Varrazzo at 9:40 AM

    Chris,

    thank you for your report. Yes, bug confirmed. The problem is probably with exceptions containing no result (e.g. generated on connect), because for the ...