1. 22 7月, 2010 1 次提交
    • R
      Centralize DML permissions-checking logic. · b8c6c71d
      Robert Haas 提交于
      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. 21 7月, 2010 2 次提交
  3. 20 7月, 2010 7 次提交
  4. 19 7月, 2010 4 次提交
    • T
      Remove unnecessary "Not safe to send CSV data" complaint from elog.c's fallback · cf5305f4
      Tom Lane 提交于
      path when CSV logging is configured but not yet operational.  It's sufficient
      to send the message to stderr, as we were already doing, and the "Not safe"
      gripe has already confused at least two core members ...
      
      Backpatch to 9.0, but not further --- doesn't seem appropriate to change
      this behavior in stable branches.
      cf5305f4
    • T
      Allow ORDER BY/GROUP BY/etc items to match targetlist items regardless of · fba999cb
      Tom Lane 提交于
      any implicit casting previously applied to the targetlist item.  This is
      reasonable because the implicit cast, by definition, wasn't written by the
      user; so we are preserving the expected behavior that ORDER BY items match
      textually equivalent tlist items.  The case never arose before because there
      couldn't be any implicit casting of a top-level SELECT item before we process
      ORDER BY etc.  But now it can arise in the context of aggregates containing
      ORDER BY clauses, since the "targetlist" is the already-casted list of
      arguments for the aggregate.  The net effect is that the datatype used for
      ORDER BY/DISTINCT purposes is the aggregate's declared input type, not that
      of the original input column; which is a bit debatable but not horrendous,
      and to do otherwise would require major rework that doesn't seem justified.
      
      Per bug #5564 from Daniel Grace.  Back-patch to 9.0 where aggregate ORDER BY
      was implemented.
      fba999cb
    • T
    • T
      25241aee
  5. 18 7月, 2010 3 次提交
  6. 17 7月, 2010 1 次提交
  7. 16 7月, 2010 5 次提交
  8. 15 7月, 2010 3 次提交
    • T
      25be9b1d
    • T
      Fix several problems in pg_dump's handling of SQL/MED objects, notably failure · 599dba4a
      Tom Lane 提交于
      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
    • T
      Allow full SSL certificate verification (wherein libpq checks its host name · d494e685
      Tom Lane 提交于
      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
  9. 14 7月, 2010 5 次提交
  10. 13 7月, 2010 8 次提交
  11. 11 7月, 2010 1 次提交