1. 26 9月, 2011 1 次提交
  2. 24 9月, 2011 1 次提交
  3. 07 9月, 2011 2 次提交
  4. 05 7月, 2011 1 次提交
  5. 29 6月, 2011 1 次提交
  6. 19 6月, 2011 1 次提交
  7. 01 6月, 2011 1 次提交
    • T
      Replace use of credential control messages with getsockopt(LOCAL_PEERCRED). · be4585b1
      Tom Lane 提交于
      It turns out the reason we hadn't found out about the portability issues
      with our credential-control-message code is that almost no modern platforms
      use that code at all; the ones that used to need it now offer getpeereid(),
      which we choose first.  The last holdout was NetBSD, and they added
      getpeereid() as of 5.0.  So far as I can tell, the only live platform on
      which that code was being exercised was Debian/kFreeBSD, ie, FreeBSD kernel
      with Linux userland --- since glibc doesn't provide getpeereid(), we fell
      back to the control message code.  However, the FreeBSD kernel provides a
      LOCAL_PEERCRED socket parameter that's functionally equivalent to Linux's
      SO_PEERCRED.  That is both much simpler to use than control messages, and
      superior because it doesn't require receiving a message from the other end
      at just the right time.
      
      Therefore, add code to use LOCAL_PEERCRED when necessary, and rip out all
      the credential-control-message code in the backend.  (libpq still has such
      code so that it can still talk to pre-9.1 servers ... but eventually we can
      get rid of it there too.)  Clean up related autoconf probes, too.
      
      This means that libpq's requirepeer parameter now works on exactly the same
      platforms where the backend supports peer authentication, so adjust the
      documentation accordingly.
      be4585b1
  8. 19 5月, 2011 1 次提交
  9. 05 5月, 2011 1 次提交
  10. 03 5月, 2011 1 次提交
  11. 08 4月, 2011 1 次提交
    • T
      Avoid extra whitespace in the arguments of <indexterm>. · dca30da3
      Tom Lane 提交于
      As noted by Thom Brown, this confuses the DocBook index processor; it
      fails to merge entries that differ only in whitespace, and sorts them
      unexpectedly as well.  Seems like a toolchain bug, but I'm not going to
      hold my breath waiting for a fix.
      
      Note: easiest way to find these is to look for double spaces in HTML.index.
      dca30da3
  12. 12 3月, 2011 2 次提交
  13. 11 3月, 2011 1 次提交
  14. 19 2月, 2011 1 次提交
    • P
      Set psql client encoding from locale by default · 02e14562
      Peter Eisentraut 提交于
      Add a new libpq connection option client_encoding (which includes the
      existing PGCLIENTENCODING environment variable), which besides an
      encoding name accepts a special value "auto" that tries to determine
      the encoding from the locale in the client's environment, using the
      mechanisms that have been in use in initdb.
      
      psql sets this new connection option to "auto" when running from a
      terminal and not overridden by setting PGCLIENTENCODING.
      
      original code by Heikki Linnakangas, with subsequent contributions by
      Jaime Casanova, Peter Eisentraut, Stephen Frost, Ibrar Ahmed
      02e14562
  15. 13 2月, 2011 3 次提交
  16. 07 2月, 2011 2 次提交
  17. 05 2月, 2011 1 次提交
  18. 03 2月, 2011 1 次提交
  19. 30 1月, 2011 1 次提交
  20. 18 1月, 2011 1 次提交
  21. 14 1月, 2011 1 次提交
  22. 13 1月, 2011 1 次提交
  23. 29 12月, 2010 1 次提交
  24. 27 12月, 2010 1 次提交
  25. 22 12月, 2010 1 次提交
    • M
      Add PQlibVersion() function to libpq · de9a4c27
      Magnus Hagander 提交于
      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
  26. 11 12月, 2010 1 次提交
  27. 27 11月, 2010 2 次提交
    • T
      A bit more wordsmithing on the PQping documentation. · d53c1255
      Tom Lane 提交于
      d53c1255
    • T
      Rewrite PQping to be more like what we agreed to last week. · db96e1cc
      Tom Lane 提交于
      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
  28. 26 11月, 2010 1 次提交
  29. 25 11月, 2010 1 次提交
    • B
      When reporting the server as not responding, if the hostname was · ba11258c
      Bruce Momjian 提交于
      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
  30. 24 11月, 2010 1 次提交
  31. 22 10月, 2010 1 次提交
  32. 21 9月, 2010 1 次提交
  33. 29 8月, 2010 1 次提交
  34. 17 8月, 2010 1 次提交