1. 22 Jul, 2010 4 commits
    • Robert Haas's avatar
      Add missing function prototype. · bca03b12
      Robert Haas authored
      Fujii Masao
      bca03b12
    • Robert Haas's avatar
    • Robert Haas's avatar
      Add options to force quoting of all identifiers. · ce68df46
      Robert Haas authored
      I've added a quote_all_identifiers GUC which affects the behavior
      of the backend, and a --quote-all-identifiers argument to pg_dump
      and pg_dumpall which sets the GUC and also affects the quoting done
      internally by those applications.
      
      Design by Tom Lane; review by Alex Hunsaker; in response to bug #5488
      filed by Hartmut Goebel.
      ce68df46
    • Robert Haas's avatar
      Centralize DML permissions-checking logic. · b8c6c71d
      Robert Haas authored
      Remove bespoke code in DoCopy and RI_Initial_Check, which now instead
      fabricate call ExecCheckRTPerms with a manufactured RangeTblEntry.
      This is intended to make it feasible for an enhanced security provider
      to actually make use of ExecutorCheckPerms_hook, but also has the
      advantage that RI_Initial_Check can allow use of the fast-path when
      column-level but not table-level permissions are present.
      
      KaiGai Kohei.  Reviewed (in an earlier version) by Stephen Frost, and by me.
      Some further changes to the comments by me.
      b8c6c71d
  2. 20 Jul, 2010 8 commits
  3. 19 Jul, 2010 1 commit
  4. 18 Jul, 2010 7 commits
  5. 16 Jul, 2010 6 commits
  6. 14 Jul, 2010 3 commits
    • Tom Lane's avatar
      25be9b1d
    • Tom Lane's avatar
      Fix several problems in pg_dump's handling of SQL/MED objects, notably failure · 599dba4a
      Tom Lane authored
      to dump a PUBLIC user mapping correctly, as per bug #5560 from Shigeru Hanada.
      Use the pg_user_mappings view rather than trying to access pg_user_mapping
      directly, so that the code doesn't fail when run by a non-superuser.  And
      clean up some minor carelessness such as unsafe usage of fmtId().
      
      Back-patch to 8.4 where this code was added.
      599dba4a
    • Tom Lane's avatar
      Allow full SSL certificate verification (wherein libpq checks its host name · d494e685
      Tom Lane authored
      parameter against server cert's CN field) to succeed in the case where
      both host and hostaddr are specified.  As with the existing precedents
      for Kerberos, GSSAPI, SSPI, it is the calling application's responsibility
      that host and hostaddr match up --- we just use the host name as given.
      Per bug #5559 from Christopher Head.
      
      In passing, make the error handling and messages for the no-host-name-given
      failure more consistent among these four cases, and correct a lie in the
      documentation: we don't attempt to reverse-lookup host from hostaddr
      if host is missing.
      
      Back-patch to 8.4 where SSL cert verification was introduced.
      d494e685
  7. 13 Jul, 2010 7 commits
  8. 12 Jul, 2010 4 commits