1. 25 Jul, 2010 4 commits
  2. 24 Jul, 2010 3 commits
  3. 23 Jul, 2010 3 commits
  4. 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
  5. 20 Jul, 2010 8 commits
  6. 19 Jul, 2010 1 commit
  7. 18 Jul, 2010 7 commits
  8. 16 Jul, 2010 6 commits
  9. 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
  10. 13 Jul, 2010 1 commit
    • Tom Lane's avatar
      Teach EXPLAIN to print PARAM_EXEC Params as the referenced expressions, · 1cc29fe7
      Tom Lane authored
      rather than just $N.  This brings the display of nestloop-inner-indexscan
      plans back to where it's been, and incidentally improves the display of
      SubPlan parameters as well.  In passing, simplify the EXPLAIN code by
      having it deal primarily in the PlanState tree rather than separately
      searching Plan and PlanState trees.  This is noticeably cleaner for
      subplans, and about a wash elsewhere.
      
      One small difference from previous behavior is that EXPLAIN will no longer
      qualify local variable references in inner-indexscan plan nodes, since it
      no longer sees such nodes as possibly referencing multiple tables.  Vars
      referenced through PARAM_EXEC Params are still forcibly qualified, though,
      so I don't think the display is any more confusing than before.  Adjust a
      couple of examples in the documentation to match this behavior.
      1cc29fe7