1. 15 Jul, 2007 6 commits
  2. 14 Jul, 2007 2 commits
  3. 13 Jul, 2007 3 commits
  4. 12 Jul, 2007 14 commits
  5. 11 Jul, 2007 2 commits
  6. 10 Jul, 2007 4 commits
  7. 09 Jul, 2007 3 commits
  8. 08 Jul, 2007 6 commits
    • Tom Lane's avatar
      Remove the pgstat_drop_relation() call from smgr_internal_unlink(), because · b09cb0cf
      Tom Lane authored
      we don't know at that point which relation OID to tell pgstat to forget.
      The code was passing the relfilenode, which is incorrect, and could possibly
      cause some other relation's stats to be zeroed out.  While we could try to
      clean this up, it seems much simpler and more reliable to let the next
      invocation of pgstat_vacuum_tabstat() fix things; which indeed is how it
      worked before I introduced the buggy code into 8.1.3 and later :-(.
      Problem noticed by Itagaki Takahiro, fix is per subsequent discussion.
      b09cb0cf
    • Tom Lane's avatar
      Get rid of client-code dependencies on the exact text of the no-password · 8331c11f
      Tom Lane authored
      error message, by using PQconnectionUsedPassword() instead.  Someday
      we might be able to localize that error message, but not until this
      coding technique has disappeared everywhere.
      8331c11f
    • Tom Lane's avatar
      Closer code review for PQconnectionUsedPassword() patch: in particular, · 5f7b1f8d
      Tom Lane authored
      not OK to include postgres_fe.h into libpq-fe.h, hence declare it as
      returning int not bool.
      5f7b1f8d
    • Tom Lane's avatar
      Fix broken markup. · 3f33d7bc
      Tom Lane authored
      3f33d7bc
    • Joe Conway's avatar
      Restrict non-superusers to password authenticated connections · d92583f8
      Joe Conway authored
      to prevent possible escalation of privilege. Provide new SECURITY
      DEFINER functions with old behavior, but initially REVOKE ALL
      from public for these functions. Per list discussion and design
      proposed by Tom Lane. A different approach will be used for
      back-branches, committed separately.
      d92583f8
    • Joe Conway's avatar
      Arrange for the authentication request type to be preserved in · 51bc3dfe
      Joe Conway authored
      PGconn. Invent a new libpq connection-status function,
      PQconnectionUsedPassword() that returns true if the server
      demanded a password during authentication, false otherwise.
      This may be useful to clients in general, but is immediately
      useful to help plug a privilege escalation path in dblink.
      Per list discussion and design proposed by Tom Lane.
      51bc3dfe