1. 01 2月, 2006 2 次提交
    • T
      6851baed
    • T
      Restructure planner's handling of inheritance. Rather than processing · 8a1468af
      Tom Lane 提交于
      inheritance trees on-the-fly, which pretty well constrained us to considering
      only one way of planning inheritance, expand inheritance sets during the
      planner prep phase, and build a side data structure that can be consulted
      later to find which RTEs are members of which inheritance sets.  As proof of
      concept, use the data structure to plan joins against inheritance sets more
      efficiently: we can now use indexes on the set members in inner-indexscan
      joins.  (The generated plans could be improved further, but it'll take some
      executor changes.)  This data structure will also support handling UNION ALL
      subqueries in the same way as inheritance sets, but that aspect of it isn't
      finished yet.
      8a1468af
  2. 31 1月, 2006 2 次提交
  3. 30 1月, 2006 3 次提交
  4. 29 1月, 2006 1 次提交
    • A
      · 4400ca2b
      Andrew Dunstan 提交于
      Undo perl's nasty locale setting on Windows. Since we can't do that as
      elsewhere by setting the environment appropriately, we make perl do it
      right after interpreter startup by calling its POSIX::setlocale().
      4400ca2b
  5. 28 1月, 2006 3 次提交
    • N
      Per a bug report from Theo Schlossnagle, plperl_return_next() leaks · ebdefb93
      Neil Conway 提交于
      memory in the executor's per-query memory context. It also inefficient:
      it invokes get_call_result_type() and TupleDescGetAttInMetadata() for
      every call to return_next, rather than invoking them once (per PL/Perl
      function call) and memoizing the result.
      
      This patch makes the following changes:
      
      - refactor the code to include all the "per PL/Perl function call" data
      inside a single struct, "current_call_data". This means we don't need to
      save and restore N pointers for every recursive call into PL/Perl, we
      can just save and restore one.
      
      - lookup the return type metadata needed by plperl_return_next() once,
      and then stash it in "current_call_data", so as to avoid doing the
      lookup for every call to return_next.
      
      - create a temporary memory context in which to evaluate the return
      type's input functions. This memory context is reset for each call to
      return_next.
      
      The patch appears to fix the memory leak, and substantially reduces
      the overhead imposed by return_next.
      ebdefb93
    • T
      Tweak initdb to reduce verbosity of progress messages, by printing just · cab99ec3
      Tom Lane 提交于
      one 'creating subdirectories' message instead of one per subdirectory.
      The original decision to print something for each subdirectory was made
      when there were only one or two of 'em; we have way too many now.
      Per discussion.
      cab99ec3
    • T
      Snowball multibyte. It's a pity, but snowball sources is very diferent for multibyte and · 5e2707c4
      Teodor Sigaev 提交于
      singlebyte encodings, so we should have snowball for every encodings.
      
      I hope that finalize multibyte support work in tsearch2, but testing is needed...
      5e2707c4
  6. 27 1月, 2006 2 次提交
  7. 26 1月, 2006 10 次提交
  8. 25 1月, 2006 1 次提交
  9. 24 1月, 2006 5 次提交
  10. 23 1月, 2006 4 次提交
  11. 22 1月, 2006 4 次提交
  12. 21 1月, 2006 3 次提交
    • T
      Repair longstanding bug in slru/clog logic: it is possible for two backends · c89a0dd3
      Tom Lane 提交于
      to try to create a log segment file concurrently, but the code erroneously
      specified O_EXCL to open(), resulting in a needless failure.  Before 7.4,
      it was even a PANIC condition :-(.  Correct code is actually simpler than
      what we had, because we can just say O_CREAT to start with and not need a
      second open() call.  I believe this accounts for several recent reports of
      hard-to-reproduce "could not create file ...: File exists" errors in both
      pg_clog and pg_subtrans.
      c89a0dd3
    • B
      Add GRANT ON SEQUENCE syntax to support sequence-only permissions. · 4789e988
      Bruce Momjian 提交于
      Continue to support GRANT ON [TABLE] for sequences for backward
      compatibility;  issue warning for invalid sequence permissions.
      
      [Backward compatibility warning message.]
      
      Add USAGE permission for sequences that allows only currval() and
      nextval(), not setval().
      
      Mention object name in grant/revoke warnings because of possible
      multi-object operations.
      4789e988
    • T
      Replace bitwise looping with bytewise looping in hemdistsign and · 33feb55c
      Tom Lane 提交于
      sizebitvec of tsearch2, as well as identical code in several other
      contrib modules.  This provided about a 20X speedup in building a
      large tsearch2 index ... didn't try to measure its effects for other
      operations.  Thanks to Stephan Vollmer for providing a test case.
      33feb55c