Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Feb 14, 2015
  1. Fix potential memory leak

  2. Merge branch 'notice-functions'

  3. Fix potential memory leak

    Also,  initialize pointers explicitly instead of using memset, given that
    null pointers aren't guaranteed to 0 according to the C standard.
Commits on Jan 21, 2015
  1. Version

  2. Use mask_ to make async exceptions safer

    Improves,  but does not close,  issue #27
  3. Make pkg-config a flag

Commits on Jan 5, 2015
  1. Merge pull request #28 from mietek/master

    Use pkg-config on Linux
Commits on Jan 3, 2015
  1. @mietek

    Use pkg-config on Linux

    mietek authored
Commits on Dec 28, 2014
  1. Reinstate workaround for GHC bug #7170

    Closes #26
Commits on Nov 24, 2014
  1. Move to a linked list of Nonfatal Error messages

    Considering that these messages tend to be fairly short,  I'm wondering
    if it would be a good idea to eliminate the length field and/or repack
    the string when it becomes a Haskell ByteString.
Commits on Nov 18, 2014
Commits on Nov 17, 2014
  1. @timmytofu
Commits on Jul 12, 2014
  1. Mark PQisBusy as an unsafe call

    Since postgresql-simple has started using non-blocking calls,  and
    this binding is currently a little overly conservative about using safe
    FFI calls,  I'm marking isBusy as unsafe as it is non-blocking.
    getResult is a bit tricker as it can be a blocking call,  or not,
    depending on when it's called.   sendQuery's blocking behavior
    depends on PQsetnonblocking mode;  however the proper use of sendQuery
    in non-blocking mode is a little opaque,  and I'll have to investigate
Commits on May 12, 2014
  1. Version

  2. Merge pull request #19 from dawedawe/master

    Drop kerberos extra-libraries for OpenBSD
  3. @dawedawe

    Drop kerberos extra-libraries for OpenBSD

    dawedawe authored
    OpenBSD removed kerberos support from PostgreSQL, so these extra libraries aren't needed anymore.
Commits on Mar 3, 2014
  1. Version

  2. More optimizations

  3. Add escapeIdentifier

    There's probably a lot of locations in postgresql-libpq that need a
    mask_ to avoid memory leaks in the presence of asynchronous exceptions.
  4. Remove oidValue

    This function hasn't been very relevant for a *long* time now,  and
    we'll be dropping support for libpq 8.4 real soon.
    You can fetch oids using RETURNING since postgresql 8.3,  and the
    default has been to create tables without oids for some time before
    that.   So while recent libpqs still have oidValue,  and you can
    use newer libpqs to connect to older postgresqls,  I still very
    much doubt this will impact anybody.
    In particular,  none of the reverse dependencies of postgresql-libpq
    on hackage make use of oidValue.  If anybody really desperately
    needs this function,  then it should be no difficulty to write a
    separate binding for it.
Commits on Feb 28, 2014
  1. More optimizations

    Further reduced the object code size by a bit over 2 kilobytes, from
    609632 bytes to 607560 on my machine (64-bit GHC 7.6.3 on Linux)
    Also,  it may be worth deprecating oidValue,  as it's not terribly
    relevant anymore:  the default is to create tables without OIDs,
    and RETURNING is a better solution anyway.
  2. Copy the error message returned by cancel

    If my experience with getvalue is any indicator,  this is likely
    faster (at least in the single-threaded case).   And as a nice
    bonus, the object code is a bit smaller
  3. More optimizations

    Saved a bit more than 6KB of object code on 64-bit ghc-7.6.3 on Linux
        617584 -> 611184
    The bulk of this from the strictness annotations inside execParams,
    execPrepared, sendQueryParams, and sendqueryPrepared,  for ~300 bytes
    per character.
Commits on Dec 21, 2013
  1. Version

  2. Eliminate more closures

Commits on Dec 19, 2013
  1. Eliminate closures creation in getvalue

    This should be a small but significant optimization;  however getvalue'
    still appears to be faster, at least for short strings.
Commits on Dec 3, 2013
  1. Bump version to

  2. Merge pull request #13 from AlexanderAA/master

    Also worth linking to a discussion of these issues on the OpenBSD mailing list:
Commits on Dec 2, 2013
  1. @AlexanderAA

    Update postgresql-libpq.cabal

    AlexanderAA authored
    Conditional added for OpenBSD (as in Leon Smith's comment to pull request #13).
    Works on OpenBSD 5.4-release and Debian "wheezy".
  2. @AlexanderAA

    Update postgresql-libpq.cabal

    AlexanderAA authored
    Fix issue #12
    Credit goes to the maintainer of the OpenBSD package, David Coppa.
    Tested on OpenBSD 5.4-release
Commits on Aug 27, 2013
  1. Bump Version

  2. Merge pull request #11 from mkscrg/master

    Remove `programFindLocation` and `hookedPrograms` calls from Setup.hs
Something went wrong with that request. Please try again.