Skip to content
Snippets Groups Projects
  1. Dec 24, 2010
  2. Dec 23, 2010
  3. Dec 22, 2010
    • Magnus Hagander's avatar
      Add PQlibVersion() function to libpq · de9a4c27
      Magnus Hagander authored
      This function is like the PQserverVersion() function except
      it returns the version of libpq, making it possible for a client
      program or driver to determine which version of libpq is in
      use at runtime, and not just at link time.
      
      Suggested by Harald Armin Massa and several others.
      de9a4c27
  4. Dec 18, 2010
  5. Dec 16, 2010
  6. Dec 11, 2010
  7. Nov 27, 2010
    • Bruce Momjian's avatar
      In libpq/Makefile, use OBJS += as a way to break up long link lines into · 1f48290a
      Bruce Momjian authored
      something that can be documented.
      1f48290a
    • Tom Lane's avatar
      On further testing, PQping also needs an explicit check for AUTH_REQ. · 49cd8a3f
      Tom Lane authored
      The pg_fe_sendauth code might fail if it can't handle the authentication
      request message type --- if so, ping should still say the server is up.
      49cd8a3f
    • Tom Lane's avatar
      Rewrite PQping to be more like what we agreed to last week. · db96e1cc
      Tom Lane authored
      Basically, we want to distinguish all cases where the connection was
      not made from those where it was.  A convenient proxy for this is to
      see if we got a message with a SQLSTATE code back from the postmaster.
      This presumes that the postmaster will always send us a SQLSTATE in
      a failure message, which is true for 7.4 and later postmasters in
      every case except fork failure.  (We could possibly complicate the
      postmaster code to do something about that, but it seems not worth
      the trouble, especially since pg_ctl's response for that case should
      be to keep waiting anyway.)
      
      If we did get a SQLSTATE from the postmaster, there are basically only
      two cases, as per last week's discussion: ERRCODE_CANNOT_CONNECT_NOW
      and everything else.  Any other error code implies that the postmaster
      is in principle willing to accept connections, it just didn't like or
      couldn't handle this particular request.  We want to make a special
      case for ERRCODE_CANNOT_CONNECT_NOW so that "pg_ctl start -w" knows
      it should keep waiting.
      
      In passing, pick names for the enum constants that are a tad less
      likely to present collision hazards in future.
      db96e1cc
    • Tom Lane's avatar
      Clean up IPv4 vs IPv6 bogosity in connectFailureMessage(). · be3b666e
      Tom Lane authored
      Newly added code was supposing that "struct sockaddr_in" applies to IPv6.
      be3b666e
  8. Nov 26, 2010
  9. Nov 25, 2010
  10. Nov 24, 2010
    • Bruce Momjian's avatar
      When reporting the server as not responding, if the hostname was · ba11258c
      Bruce Momjian authored
      supplied, also print the IP address.  This allows IPv4 and IPv6 failures
      to be distinguished.  Also useful when a hostname resolves to multiple
      IP addresses.
      
      Also, remove use of inet_ntoa() and use our own inet_net_ntop() in all
      places, including in libpq, because it is thread-safe.
      ba11258c
  11. Nov 23, 2010
  12. Nov 17, 2010
    • Peter Eisentraut's avatar
      Additional fixes for parallel make · cfad144f
      Peter Eisentraut authored
      Add some additional dependencies to constrain the build order to prevent
      parallel make from failing.  In the case of src/Makefile, this is likely to be
      too complicated to be worth maintaining, so just add .NOTPARALLEL to get the
      old for-loop-like behavior.
      
      More fine-tuning might be necessary for some platforms or configurations.
      cfad144f
  13. Nov 15, 2010
  14. Nov 12, 2010
    • Peter Eisentraut's avatar
      Improved parallel make support · 19e231bb
      Peter Eisentraut authored
      Replace for loops in makefiles with proper dependencies.  Parallel
      make can now span across directories.  Also, make -k and make -q work
      properly.
      
      GNU make 3.80 or newer is now required.
      19e231bb
  15. Nov 02, 2010
    • Michael Meskes's avatar
      Some cleanup in ecpg code: · 35d5d962
      Michael Meskes authored
      Use bool as type for booleans instead of int.
      Do not implicitely cast size_t to int.
      Make the compiler stop complaining about unused variables by adding an empty statement.
      35d5d962
  16. Oct 20, 2010
    • Tom Lane's avatar
      Fix ecpg test building process to not generate *.dSYM junk on Macs. · c75e1436
      Tom Lane authored
      The trick is to not try to build executables directly from .c files,
      but to always build the intermediate .o files.  For obscure reasons,
      Darwin's version of gcc will leave debug cruft behind in the first
      case but not the second.  Per complaint from Robert Haas.
      c75e1436
  17. Oct 14, 2010
  18. Oct 13, 2010
  19. Sep 24, 2010
  20. Sep 23, 2010
    • Tom Lane's avatar
      More fixes for libpq's .gitignore file. · 804b2761
      Tom Lane authored
      The previous patches failed to cover a lot of symlinks that are only
      added in platform-specific cases.  Make the lists match what's in the
      Makefile for each branch.
      804b2761
  21. Sep 22, 2010
  22. Sep 20, 2010
  23. Sep 19, 2010
  24. Sep 10, 2010
  25. Aug 19, 2010
  26. Aug 17, 2010
  27. Aug 13, 2010
    • Tom Lane's avatar
      Minor #include cleanup. · 3f9479ef
      Tom Lane authored
      I just noticed that libpq's pqsignal.h was violating our general inclusion
      style guidelines by explicitly including postgres_fe.h.  Remove that, and
      put it in pqsignal.c where it belongs.
      3f9479ef
  28. Aug 02, 2010
    • Tom Lane's avatar
      Fix an ancient typo that prevented the detection of conflicting fields when · fbcf2cfb
      Tom Lane authored
      interval input "invalid" was specified together with other fields.  Spotted
      by Neil Conway with the help of a clang warning.  Although this has been
      wrong since the interval code was written more than 10 years ago, it doesn't
      affect anything beyond which error message you get for a wrong input, so not
      worth back-patching very far.
      fbcf2cfb
Loading