Skip to content
Snippets Groups Projects
  1. Apr 20, 2002
  2. Apr 19, 2002
    • Tom Lane's avatar
      pg_trigger's index on tgrelid is replaced by a unique index on · 20173716
      Tom Lane authored
      (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
  3. Apr 18, 2002
    • Tom Lane's avatar
      Rule names are now unique per-relation, rather than unique globally. · b3120804
      Tom Lane authored
      DROP RULE and COMMENT ON RULE syntax adds an 'ON tablename' clause,
      similar to TRIGGER syntaxes.  To allow loading of existing pg_dump
      files containing COMMENT ON RULE, the COMMENT code will still accept
      the old syntax --- but only if the target rulename is unique across
      the whole database.
      b3120804
  4. Apr 17, 2002
    • Tom Lane's avatar
      Opclasses live in namespaces. I also took the opportunity to create · 27a54ae2
      Tom Lane authored
      an 'opclass owner' column in pg_opclass.  Nothing is done with it at
      present, but since there are plans to invent a CREATE OPERATOR CLASS
      command soon, we'll probably want DROP OPERATOR CLASS too, which
      suggests that a notion of ownership would be a good idea.
      27a54ae2
    • Tom Lane's avatar
      Operators live in namespaces. CREATE/DROP/COMMENT ON OPERATOR take · 6cef5d25
      Tom Lane authored
      qualified operator names directly, for example CREATE OPERATOR myschema.+
      ( ... ).  To qualify an operator name in an expression you need to write
      OPERATOR(myschema.+) (thanks to Peter for suggesting an escape hatch).
      I also took advantage of having to reformat pg_operator to fix something
      that'd been bugging me for a while: mergejoinable operators should have
      explicit links to the associated cross-data-type comparison operators,
      rather than hardwiring an assumption that they are named < and >.
      6cef5d25
  5. Apr 15, 2002
  6. Apr 12, 2002
  7. Apr 11, 2002
  8. Apr 09, 2002
  9. Apr 06, 2002
  10. Apr 05, 2002
  11. Apr 04, 2002
  12. Apr 03, 2002
  13. Apr 02, 2002
  14. Apr 01, 2002
    • Tom Lane's avatar
      Create a new GUC variable search_path to control the namespace search · 838fe25a
      Tom Lane authored
      path.  The default behavior if no per-user schemas are created is that
      all users share a 'public' namespace, thus providing behavior backwards
      compatible with 7.2 and earlier releases.  Probably the semantics and
      default setting will need to be fine-tuned, but this is a start.
      838fe25a
    • Tom Lane's avatar
      Temporary kluge to let RI triggers work on tables outside the system · 87b08080
      Tom Lane authored
      catalog namespace.  This will not do as a production solution because
      the interpretation of RI trigger arguments will vary depending on the
      current namespace search path.  I'm just putting it in so that the RI
      regression tests don't fail while schema development proceeds.  We
      must find a better answer before 7.3 can be released.
      87b08080
  15. Mar 31, 2002
  16. Mar 30, 2002
  17. Mar 29, 2002
  18. Mar 26, 2002
  19. Mar 24, 2002
  20. Mar 22, 2002
  21. Mar 21, 2002
    • Tom Lane's avatar
      First phase of SCHEMA changes, concentrating on fixing the grammar and · 95ef6a34
      Tom Lane authored
      the parsetree representation.  As yet we don't *do* anything with schema
      names, just drop 'em on the floor; but you can enter schema-compatible
      command syntax, and there's even a primitive CREATE SCHEMA command.
      No doc updates yet, except to note that you can now extract a field
      from a function-returning-row's result with (foo(...)).fieldname.
      95ef6a34
  22. Mar 20, 2002
  23. Mar 19, 2002
  24. Mar 16, 2002
    • Tom Lane's avatar
      Try to make array_in's behavior a tad less bizarre. Leading whitespace · 0f2fbbba
      Tom Lane authored
      before a data item is now always skipped, rather than only sometimes.
      Backslashes not within double-quoted text are treated reasonably, as
      are multiple sequences of quoted text in a single data item.  But it
      still seems rather prone to misbehavior if the input is not completely
      syntactically correct --- in particular, garbage following a right brace
      will be ignored.
      0f2fbbba
  25. Mar 12, 2002
    • Tom Lane's avatar
      Restructure representation of join alias variables. An explicit JOIN · 6eeb95f0
      Tom Lane authored
      now has an RTE of its own, and references to its outputs now are Vars
      referencing the JOIN RTE, rather than CASE-expressions.  This allows
      reverse-listing in ruleutils.c to use the correct alias easily, rather
      than painfully reverse-engineering the alias namespace as it used to do.
      Also, nested FULL JOINs work correctly, because the result of the inner
      joins are simple Vars that the planner can cope with.  This fixes a bug
      reported a couple times now, notably by Tatsuo on 18-Nov-01.  The alias
      Vars are expanded into COALESCE expressions where needed at the very end
      of planning, rather than during parsing.
      Also, beginnings of support for showing plan qualifier expressions in
      EXPLAIN.  There are probably still cases that need work.
      initdb forced due to change of stored-rule representation.
      6eeb95f0
  26. Mar 09, 2002
  27. Mar 08, 2002
    • Bruce Momjian's avatar
      TODO item done: · ee81126d
      Bruce Momjian authored
        * Change FIXED_CHAR_SEL to 0.20 from 0.04 to give better selectivity (Bruce)
      ee81126d
  28. Mar 07, 2002
  29. Mar 06, 2002
    • Bruce Momjian's avatar
      I've attached a patch which implements Bob Jenkin's hash function for · 7ab74673
      Bruce Momjian authored
      PostgreSQL. This hash function replaces the one used by hash indexes and
      the catalog cache. Hash joins use a different, relatively poor-quality
      hash function, but I'll fix that later.
      
      As suggested by Tom Lane, this patch also changes the size of the fixed
      hash table used by the catalog cache to be a power-of-2 (instead of a
      prime: I chose 256 instead of 257). This allows the catcache to lookup
      hash buckets using a simple bitmask. This should improve the performance
      of the catalog cache slightly, since the previous method (modulo a
      prime) was slow.
      
      In my tests, this improves the performance of hash indexes by between 4%
      and 8%; the performance when using btree indexes or seqscans is
      basically unchanged.
      
      Neil Conway <neilconway@rogers.com>
      7ab74673
Loading