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.

Matthew Woodcraft's latest activity

Tuesday, March 19 2013
149 Add support for PG_DIAG_*_NAME error fields was updated in psycopg
  • Matthew Woodcraft
    Matthew Woodcraft commented at 12:19 AM

    Thanks. One possible complication I thought of is that the Diagnostics still wants to see a connection in order to call conn_text_from_chars(); I suppose that p...

Monday, March 18 2013
149 Add support for PG_DIAG_*_NAME error fields was updated in psycopg
  • Matthew Woodcraft
    Matthew Woodcraft commented at 10:26 PM

    OK.

    I think now that the problem is that, because commit is called directly on the connection, there is no cursor associated with the exception. So I'm not sure...

  • Matthew Woodcraft
    Matthew Woodcraft commented at 9:50 PM

    I think diagnostics aren't working for errors which are raised from COMMIT. I suppose the PQresult is being cleared too early, but I'm not sure where.

    This test...

  • Matthew Woodcraft
    Matthew Woodcraft commented at 7:51 PM

    I do have one other small worry: it's possible for a cursor to be re-used after an error, so in principle 'diag' from an existing Error object could end up repo...

  • Matthew Woodcraft
    Matthew Woodcraft commented at 7:40 PM

    Looks good to me. Perhaps it's worth saying in the docs that the PG_DIAG_*_NAME fields won't be available unless the server is PostgreSQL 9.3 or later? (Also, I...

Sunday, March 17 2013
149 Add support for PG_DIAG_*_NAME error fields was updated in psycopg
  • Matthew Woodcraft
    Matthew Woodcraft commented at 9:45 PM

    I hope to do some more work on it tomorrow. But of course I won't have any complaints if you fix things yourself.

  • Matthew Woodcraft
    Matthew Woodcraft commented at 5:14 PM

    Ok, I've pushed it to a 2013-03-17_diagnostics branch in mattheww/psycopg2 on github:
    https://github.com/mattheww/psycopg2/tree/2013-03-17_diagnostics

    It's base...

  • Matthew Woodcraft
    Matthew Woodcraft commented at 3:15 PM

    I have something basically working now, using the design you described. If you like I'll publish what I've got so you can judge whether it looks suitable, and h...

  • Matthew Woodcraft
    Matthew Woodcraft commented at 11:48 AM

    Ok, that makes sense. I will have a go at writing it that way.

Saturday, March 09 2013
149 Add support for PG_DIAG_*_NAME error fields was updated in psycopg
  • Matthew Woodcraft
    Matthew Woodcraft commented at 9:18 PM

    Last summer, when an earlier version of this Postgres patch was being considered, I had a look at adding support in Psycopg.

    If you haven't started work on this...