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, August 26 2014
201 Python freezed binary cannot use psycopg.so was updated
  • Christian Bachmaier
    Christian Bachmaier commented at 4:15 PM

    Have another test: I suspect if _psycopg.so is in the same directory of the executable you don't even need the sys.path hack, but I may be wrong.

    Unfortunatel...

  • Daniele Varrazzo
    • State changed from open to resolved
    by Daniele Varrazzo at 4:05 PM

    Hi Christian,

    I consider the refactoring I've made to _psycopg.so generally useful and I've tested it more yesterday. If there is no surprise from the test grid...

  • Christian Bachmaier
    Christian Bachmaier commented at 3:31 PM

    Daniele, thanks.

    Your code sys.path Manipulation works with the version from

    cd /scratch
    git clone https://github.com/dvarazzo/psycopg -b freeze
    cd psycopg
    pyth...

Monday, August 25 2014
201 Python freezed binary cannot use psycopg.so was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:44 PM

    Christian, I've taken a look at your problem.

    Freeze cannot freeze psycopg just because it cannot work with C extension. This should be enough to rule out what ...

  • Daniele Varrazzo
    Daniele Varrazzo edited a comment at 10:44 PM

    Christian, I've taken a look at your problem.

    Freeze cannot freeze psycopg just because it cannot work with C extension. This should be enough to rule out what ...

Friday, August 22 2014
231 I have bug with array of composite types was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 4:56 PM

    In this case you should create your data as a specific python type, it cannot be a generic tuple, and register a typecaster for it. For instance:

    Comp = namedt...
  • Nikita Kuznetsov
    Nikita Kuznetsov commented at 3:32 PM

    No, I want autocast, because I use sqlalchemy and I work througth sqlalchemy interface.

  • Daniele Varrazzo
    • State changed from new to invalid
    • Tag changed from compositetype, rel-2.5.3 to compositetype, question, rel-2.5.3
    by Daniele Varrazzo at 1:05 PM

    Try adding an explicit cast after your placeholder specifying that the type you are passing is an array of test_comp_type. This should work:

    cur.execute("INSER...
  • Psycopg website
    Psycopg website created the ticket at 6:42 AM

    Submitted by: Nikita Kuznetsov

    import psycopg2
    import psycopg2.extras
    
    
    conn = psycopg2.connect("dbname=test user=y")
    cur = conn.cursor()
    cur.execute("DROP TAB...
  • Psycopg website
    Psycopg website edited the ticket at 1:01 PM

    Submitted by: Nikita Kuznetsov

    import psycopg2
    import psycopg2.extras
    
    
    conn = psycopg2.connect("dbname=test user=y")
    cur = conn.cursor()
    cur.execute("DROP TAB...
171 Move out of Lighhouse was updated
Thursday, August 21 2014
230 install via Python Wheels was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 6:17 PM

    Please explain better.

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

    Submitted by: rcorzogutierrez

    We can install via Wheels

psycopg2 2.5.3 was updated by Daniele Varrazzo at 5:11 AM
 
0 of 6 tickets remain in this milestone
229 Cursors WITH HOLD can work in autocommit was created
228 WITH HOLD cursors open a new transaction upon move/fetch/close was created
Wednesday, August 13 2014
227 'with' statment not working in tornado was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 4:38 PM

    This is not a bug. If you are a beginner and learning how the library works please use the mailing list.

  • matheus
    matheus created the ticket at 4:25 PM

    Transaction isn't rolling back in case of error. Please check the file attached.

    how to reprocude error:

    run the tornado instance;
    access localhost:8080/signup/...

220 minconn and maxconn in pool code allow for non integer values resulting in un... was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 1:36 AM

    Fixed in psycopg 2.5.4. The class init now attempts a conversion to int.

226 psycopg2 and select from jsonb was updated
  • Daniele Varrazzo
    • State changed from open to resolved
    by Daniele Varrazzo at 1:26 AM

    Implemented into my github branch, waiting a few days before pushing to official repo.

Tuesday, August 12 2014
226 psycopg2 and select from jsonb was updated
Sunday, August 10 2014
225 Empty ranges are not always flagged as empty. was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 1:30 PM

    Reducing to empty is not the only normalization rule Postgres uses. PG for instance normalizes [10,20] to [10,21).

    Psycopg doesn't apply the rules PG uses becau...

  • Daniele Varrazzo
    Daniele Varrazzo edited a comment at 1:33 PM

    Reducing to empty is not the only normalization rule Postgres uses. PG for instance normalizes [10,20] to [10,21).

    Psycopg doesn't apply the rules PG uses becau...

  • Daniele Varrazzo
    Daniele Varrazzo edited a comment at 1:40 PM

    Reducing to empty is not the only normalization rule Postgres uses. PG for instance normalizes [10,20] to [10,21).

    Psycopg doesn't apply the rules PG uses becau...

  • Matthew Schinckel
    Matthew Schinckel created the ticket at 12:14 PM

    When using a NumericRange, such as [16,16), this should as the postgres documentation says, normalise to empty.

    It should also report as isempty in psycopg2.

    It...

Thursday, July 24 2014
223 Process Hangs was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 11:00 AM

    You can attach gcc to the stuck process

    sorry, "gdb"

  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:41 AM

    You can attach gcc to the stuck process, or kill it generating a core.

    You can also try to make the process responsive again (killable at python level) switchin...

Tuesday, July 22 2014
223 Process Hangs was updated
  • Brad Ruderman
    Brad Ruderman commented at 4:21 PM

    With aws. How do I get the c stack trace? I have a strace of the issue.

  • Daniele Varrazzo
    Daniele Varrazzo commented at 9:47 AM

    With AWS or with regular Postgres?

    You may be bumping in some quirkiness of AWS pooling or throttling that the libpq is not prepared to handle. Getting a C stac...

  • Brad Ruderman
    Brad Ruderman commented at 12:36 AM

    Daniele-
    Why would the process still hang with a connect_timeout set? The process definitely hangs!

    Thanks!

Sunday, July 20 2014
223 Process Hangs was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:31 PM

    Ticket #112 you reference is about queries, not about connections.

    The driver is not referencing a deallocated object: it destroyed one and allocated a new one ...

  • Brad Ruderman
    Brad Ruderman commented at 2:16 PM

    I am not sure how you can claim the server is causing this error. The process hangs infinitely. I have since implemented connection pooling which seems to help,...

  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 10:21 AM

    For what I can see here it's the server not completing the connection. I tend to blame the AWS servers, not the client side.

    If you want to perform operation "s...

221 Unable to cancel query 2.4.5-1 (debian stable) was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 10:38 AM

    A way to make the query interruptable is to work in green mode with a wait callback that can tolerate being broken by ctrl-c:

    from select import select
    from ps...
  • Daniele Varrazzo
    Daniele Varrazzo edited a comment at 10:56 AM

    A way to make the query interruptable is to work in green mode with a wait callback that can tolerate being broken by ctrl-c:

    from select import select
    from ps...
224 Installing pscopg2 is failing was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 10:10 AM

    Please install python-dev package (and libpq-dev too).

Saturday, July 19 2014
224 Installing pscopg2 is failing was created
  • Psycopg website
    Psycopg website created the ticket at 7:07 PM

    Submitted by: jonathan

    creating build/temp.linux-x86_64-2.7

    creating build/temp.linux-x86_64-2.7/psycopg

    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DND...

Thursday, July 17 2014
223 Process Hangs was updated
  • Brad Ruderman
    Brad Ruderman commented at 7:33 PM
    [4420] pint_setup: init pint object at 0x7f31c51558b8, refcnt = 1
    [4420] pint_setup: good pint object at 0x7f31c51558b8, refcnt = 1
    [4420] microprotocol_getquo...
  • Brad Ruderman
    Brad Ruderman edited a comment at 7:34 PM
    [4420] pint_setup: init pint object at 0x7f31c51558b8, refcnt = 1
    [4420] pint_setup: good pint object at 0x7f31c51558b8, refcnt = 1
    [4420] microprotocol_getquo...
  • Brad Ruderman
    Brad Ruderman commented at 6:06 PM

    Reposting the code for formatting

      def _execute(self, query, params=None, fetch=False):
        self.logger.debug("starting _execute...")
        with psycopg2.connec...
  • Psycopg website
    Psycopg website created the ticket at 6:04 PM

    Submitted by: Brad

    I am using:
    Python 3.4.1
    psycopg 2.5.3

    I have an issue where I am making a lot of updates super fast (100ish per second) on a single thread. ...

Friday, July 11 2014
222 Integer range upper bound coerced to exclusive was updated
Monday, June 30 2014
221 Unable to cancel query 2.4.5-1 (debian stable) was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 9:28 PM

    Hello,

    yes, I know the issue. No, it's not fixed in the master and I don't know how to fix it; actually I don't think it's generally fixable in psycopg: you may...

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

    Submitted by: TimRex

    I seem to have a problem running psycopg2 version 2.4.5-1 (debian stable) against Python 3 v3.2.3-6

    I'm unable to signal any python process...

Friday, June 13 2014
220 minconn and maxconn in pool code allow for non integer values resulting in un... was created
  • Psycopg website
    Psycopg website created the ticket at 3:47 PM

    Submitted by: bhazuka@usgs.gov

    While working with connection pools the AbstractConnectionPool(minconn, maxconn, args, **kwargs), SimpleConnectionPool(minconn, m...

Friday, June 06 2014
219 Segmentation fault when reading "copy from" in a file was updated
  • Daniele Varrazzo
    • State changed from open to resolved
    by Daniele Varrazzo at 7:46 PM

    Fixed: the segfault was caused by a missing check in a path normally not used, triggered executing a COPY statement via execute().