1. 31 5月, 2006 1 次提交
    • T
      Code review for magic-block patch. Remove separate header file pgmagic.h, · e60cb3a3
      Tom Lane 提交于
      as this seems only likely to create headaches for module developers.  Put
      the macro in the pre-existing fmgr.h file instead.  Avoid being too cute
      about how many fields we can cram into a word, and avoid trying to fetch
      from a library we've already unlinked.
      Along the way, it occurred to me that the magic block really ought to be
      'const' so it can be stored in the program text area.  Do the same for
      the existing data blocks for PG_FUNCTION_INFO_V1 functions.
      e60cb3a3
  2. 05 4月, 2006 1 次提交
    • T
      Modify all callers of datatype input and receive functions so that if these · 147d4bf3
      Tom Lane 提交于
      functions are not strict, they will be called (passing a NULL first parameter)
      during any attempt to input a NULL value of their datatype.  Currently, all
      our input functions are strict and so this commit does not change any
      behavior.  However, this will make it possible to build domain input functions
      that centralize checking of domain constraints, thereby closing numerous holes
      in our domain support, as per previous discussion.
      
      While at it, I took the opportunity to introduce convenience functions
      InputFunctionCall, OutputFunctionCall, etc to use in code that calls I/O
      functions.  This eliminates a lot of grotty-looking casts, but the main
      motivation is to make it easier to grep for these places if we ever need
      to touch them again.
      147d4bf3
  3. 05 3月, 2006 1 次提交
  4. 23 11月, 2005 1 次提交
  5. 15 10月, 2005 1 次提交
  6. 28 6月, 2005 1 次提交
    • T
      Replace pg_shadow and pg_group by new role-capable catalogs pg_authid · 7762619e
      Tom Lane 提交于
      and pg_auth_members.  There are still many loose ends to finish in this
      patch (no documentation, no regression tests, no pg_dump support for
      instance).  But I'm going to commit it now anyway so that Alvaro can
      make some progress on shared dependencies.  The catalog changes should
      be pretty much done.
      7762619e
  7. 29 5月, 2005 1 次提交
    • T
      Modify hash_search() API to prevent future occurrences of the error · e92a8827
      Tom Lane 提交于
      spotted by Qingqing Zhou.  The HASH_ENTER action now automatically
      fails with elog(ERROR) on out-of-memory --- which incidentally lets
      us eliminate duplicate error checks in quite a bunch of places.  If
      you really need the old return-NULL-on-out-of-memory behavior, you
      can ask for HASH_ENTER_NULL.  But there is now an Assert in that path
      checking that you aren't hoping to get that behavior in a palloc-based
      hash table.
      Along the way, remove the old HASH_FIND_SAVE/HASH_REMOVE_SAVED actions,
      which were not being used anywhere anymore, and were surely too ugly
      and unsafe to want to see revived again.
      e92a8827
  8. 15 4月, 2005 1 次提交
  9. 01 4月, 2005 1 次提交
  10. 29 3月, 2005 2 次提交
    • T
      Officially decouple FUNC_MAX_ARGS from INDEX_MAX_KEYS, and set the · 8c85a34a
      Tom Lane 提交于
      former to 100 by default.  Clean up some of the less necessary
      dependencies on FUNC_MAX_ARGS; however, the biggie (FunctionCallInfoData)
      remains.
      8c85a34a
    • T
      Convert oidvector and int2vector into variable-length arrays. This · 70c9763d
      Tom Lane 提交于
      change saves a great deal of space in pg_proc and its primary index,
      and it eliminates the former requirement that INDEX_MAX_KEYS and
      FUNC_MAX_ARGS have the same value.  INDEX_MAX_KEYS is still embedded
      in the on-disk representation (because it affects index tuple header
      size), but FUNC_MAX_ARGS is not.  I believe it would now be possible
      to increase FUNC_MAX_ARGS at little cost, but haven't experimented yet.
      There are still a lot of vestigial references to FUNC_MAX_ARGS, which
      I will clean up in a separate pass.  However, getting rid of it
      altogether would require changing the FunctionCallInfoData struct,
      and I'm not sure I want to buy into that.
      70c9763d
  11. 23 3月, 2005 1 次提交
  12. 03 2月, 2005 1 次提交
  13. 01 1月, 2005 1 次提交
    • P
      · 2ff50159
      PostgreSQL Daemon 提交于
      Tag appropriate files for rc3
      
      Also performed an initial run through of upgrading our Copyright date to
      extend to 2005 ... first run here was very simple ... change everything
      where: grep 1996-2004 && the word 'Copyright' ... scanned through the
      generated list with 'less' first, and after, to make sure that I only
      picked up the right entries ...
      2ff50159
  14. 27 12月, 2004 1 次提交
  15. 25 10月, 2004 1 次提交
  16. 02 10月, 2004 1 次提交
  17. 13 9月, 2004 1 次提交
  18. 30 8月, 2004 1 次提交
  19. 29 8月, 2004 1 次提交
  20. 31 5月, 2004 1 次提交
  21. 19 1月, 2004 1 次提交
  22. 08 1月, 2004 1 次提交
  23. 07 1月, 2004 1 次提交
    • T
      Apply the core parts of Dennis Bjorklund's patch to allow function · a77e32d7
      Tom Lane 提交于
      parameters to be declared with names.  pg_proc has a column to store
      names, and CREATE FUNCTION can insert data into it, but that's all as
      yet.  I need to do more work on the pg_dump and plpgsql portions of the
      patch before committing those, but I thought I'd get the bulky changes
      in before the tree drifts under me.
      initdb forced due to pg_proc change.
      a77e32d7
  24. 30 11月, 2003 1 次提交
    • P
      · 969685ad
      PostgreSQL Daemon 提交于
      $Header: -> $PostgreSQL Changes ...
      969685ad
  25. 25 9月, 2003 1 次提交
  26. 04 8月, 2003 2 次提交
  27. 26 7月, 2003 1 次提交
  28. 01 7月, 2003 1 次提交
  29. 29 6月, 2003 1 次提交
    • T
      Support expressions of the form 'scalar op ANY (array)' and · bee21792
      Tom Lane 提交于
      'scalar op ALL (array)', where the operator is applied between the
      lefthand scalar and each element of the array.  The operator must
      yield boolean; the result of the construct is the OR or AND of the
      per-element results, respectively.
      
      Original coding by Joe Conway, after an idea of Peter's.  Rewritten
      by Tom to keep the implementation strictly separate from subqueries.
      bee21792
  30. 26 6月, 2003 1 次提交
  31. 25 6月, 2003 1 次提交
  32. 09 4月, 2003 1 次提交
  33. 05 12月, 2002 1 次提交
  34. 13 11月, 2002 1 次提交
  35. 11 11月, 2002 1 次提交
  36. 10 11月, 2002 1 次提交
  37. 05 10月, 2002 1 次提交
    • T
      Tweak a few of the most heavily used function call points to zero out · 3b8ba163
      Tom Lane 提交于
      just the significant fields of FunctionCallInfoData, rather than MemSet'ing
      the whole struct to zero.  Unused positions in the arg[] array will
      thereby contain garbage rather than zeroes.  This buys back some of the
      performance hit from increasing FUNC_MAX_ARGS.  Also tweak tuplesort.c
      code for more speed by marking some routines 'inline'.  All together
      these changes speed up simple sorts, like count(distinct int4column),
      by about 25% on a P4 running RH Linux 7.2.
      3b8ba163
  38. 05 9月, 2002 1 次提交