1. 01 2月, 2007 1 次提交
    • B
      Update reference documentation on may/can/might: · e81c138e
      Bruce Momjian 提交于
      Standard English uses "may", "can", and "might" in different ways:
      
              may - permission, "You may borrow my rake."
      
              can - ability, "I can lift that log."
      
              might - possibility, "It might rain today."
      
      Unfortunately, in conversational English, their use is often mixed, as
      in, "You may use this variable to do X", when in fact, "can" is a better
      choice.  Similarly, "It may crash" is better stated, "It might crash".
      e81c138e
  2. 16 9月, 2006 1 次提交
  3. 06 9月, 2006 1 次提交
    • T
      Get rid of the separate RULE privilege for tables: now only a table's owner · 7bae5a28
      Tom Lane 提交于
      can create or modify rules for the table.  Do setRuleCheckAsUser() while
      loading rules into the relcache, rather than when defining a rule.  This
      ensures that permission checks for tables referenced in a rule are done with
      respect to the current owner of the rule's table, whereas formerly ALTER TABLE
      OWNER would fail to update the permission checking for associated rules.
      Removal of separate RULE privilege is needed to prevent various scenarios
      in which a grantee of RULE privilege could effectively have any privilege
      of the table owner.  For backwards compatibility, GRANT/REVOKE RULE is still
      accepted, but it doesn't do anything.  Per discussion here:
      http://archives.postgresql.org/pgsql-hackers/2006-04/msg01138.php
      7bae5a28
  4. 03 9月, 2006 1 次提交
    • T
      Apply a simple solution to the problem of making INSERT/UPDATE/DELETE · 917bbebf
      Tom Lane 提交于
      RETURNING play nice with views/rules.  To wit, have the rule rewriter
      rewrite any RETURNING clause found in a rule to produce what the rule's
      triggering query asked for in its RETURNING clause, in particular drop
      the RETURNING clause if no RETURNING in the triggering query.  This
      leaves the responsibility for knowing how to produce the view's output
      columns on the rule author, without requiring any fundamental changes
      in rule semantics such as adding new rule event types would do.  The
      initial implementation constrains things to ensure that there is
      exactly one, unconditionally invoked RETURNING clause among the rules
      for an event --- later we might be able to relax that, but for a post
      feature freeze fix it seems better to minimize how much invention we do.
      Per gripe from Jaime Casanova.
      917bbebf
  5. 04 1月, 2005 1 次提交
  6. 10 3月, 2004 1 次提交
  7. 04 3月, 2004 1 次提交
  8. 30 11月, 2003 1 次提交
    • P
      · 969685ad
      PostgreSQL Daemon 提交于
      $Header: -> $PostgreSQL Changes ...
      969685ad
  9. 10 9月, 2003 1 次提交
  10. 01 9月, 2003 1 次提交
  11. 22 4月, 2003 1 次提交
  12. 22 11月, 2002 1 次提交
  13. 03 9月, 2002 1 次提交
  14. 18 5月, 2002 1 次提交
  15. 20 4月, 2002 2 次提交
    • T
      Change naming rule for ON SELECT rules of views: they're all just · 6d6ca216
      Tom Lane 提交于
      _RETURN now, since there's no need to keep 'em unique anymore.
      6d6ca216
    • T
      pg_trigger's index on tgrelid is replaced by a unique index on · 20173716
      Tom Lane 提交于
      (tgrelid, tgname).  This provides an additional check on trigger name
      uniqueness per-table (which was already enforced by the code anyway).
      With this change, RelationBuildTriggers will read the triggers in
      order by tgname, since it's scanning using this index.  Since a
      predictable trigger ordering has been requested for some time, document
      this behavior as a feature.  Also document that rules fire in name
      order, since yesterday's changes to pg_rewrite indexing cause that too.
      20173716
  16. 23 3月, 2002 1 次提交
  17. 10 3月, 2002 1 次提交
  18. 25 1月, 2002 1 次提交
  19. 08 12月, 2001 1 次提交
  20. 07 11月, 2001 1 次提交
  21. 10 10月, 2001 1 次提交
  22. 14 9月, 2001 1 次提交
    • T
      Example rules do not work. · 479cba83
      Tatsuo Ishii 提交于
      CREATE RULE bad_rule_combination_1 AS
          ON SELECT TO emp
          DO INSTEAD
              SELECT * FROM toyemp;
      
      CREATE RULE bad_rule_combination_2 AS
          ON SELECT TO toyemp
          DO INSTEAD
              SELECT * FROM emp;
      
      	Tatsuo Ishii
      479cba83
  23. 08 9月, 2001 1 次提交
  24. 03 9月, 2001 1 次提交
  25. 10 7月, 2001 1 次提交
  26. 27 5月, 2001 1 次提交
  27. 14 1月, 2001 1 次提交
  28. 06 1月, 2001 1 次提交
  29. 13 12月, 2000 1 次提交
    • B
      In 'Joins between classes' in Section 5 of the tutorial we have, in · 36da236e
      Bruce Momjian 提交于
      the first paragraph:
      
          As an example, say we wish to find all the records that
          are in the  temperature  range  of  other records. In
          effect, we need to compare the temp_lo and temp_hi
          attributes of each EMP instance to the temp_lo and
          temp_hi  attributes of all other EMP instances.
      
      I believe that EMP should read WEATHER, as the example query that
      follows joins WEATHER to itself.
      
      EMP is often used in Oracle examples.
      
      Regards,
      Graham
      
      Other RULE cleanups
      36da236e
  30. 06 10月, 2000 1 次提交
  31. 22 7月, 2000 1 次提交
  32. 21 7月, 2000 1 次提交
  33. 20 5月, 2000 1 次提交
  34. 13 4月, 2000 1 次提交
  35. 08 4月, 2000 4 次提交
  36. 22 7月, 1999 1 次提交