1. 09 11月, 2002 2 次提交
    • T
      Add extra_float_digits GUC parameter to allow adjustment of displayed · d2c744aa
      Tom Lane 提交于
      precision for float4, float8, and geometric types.  Set it in pg_dump
      so that float data can be dumped/reloaded exactly (at least on platforms
      where the float I/O support is properly implemented).  Initial patch by
      Pedro Ferreira, some additional work by Tom Lane.
      d2c744aa
    • B
      The "Allow easy display of usernames in a group (pg_hba.conf uses groups · fef731d1
      Bruce Momjian 提交于
      now)" item on the open items, and subsequent plpgsql function I sent in,
      made me realize it was too hard to get the upper and lower bound of an
      array. The attached creates two functions that I think will be very
      useful when combined with the ability of plpgsql to return sets.
      
      array_lower(array, dim_num)
      - and -
      array_upper(array, dim_num)
      
      They return the value (as an int) of the upper and lower bound of the
      requested dim in the provided array.
      
      Joe Conway
      fef731d1
  2. 03 11月, 2002 1 次提交
  3. 02 11月, 2002 3 次提交
  4. 01 11月, 2002 3 次提交
  5. 26 10月, 2002 1 次提交
  6. 19 10月, 2002 3 次提交
  7. 15 10月, 2002 1 次提交
    • T
      Arrange to copy relcache's trigdesc structure at the start of any · 8f2a289d
      Tom Lane 提交于
      query that uses it.  This ensures that triggers will be applied consistently
      throughout a query even if someone commits changes to the relation's
      pg_class.reltriggers field meanwhile.  Per crash report from Laurette Cisneros.
      While at it, simplify memory management in relcache.c, which no longer
      needs the old hack to try to keep trigger info in the same place over
      a relcache entry rebuild.  (Should try to fix rd_att and rewrite-rule
      access similarly, someday.)  And make RelationBuildTriggers simpler and
      more robust by making it build the trigdesc in working memory and then
      CopyTriggerDesc() into cache memory.
      8f2a289d
  8. 13 10月, 2002 1 次提交
  9. 11 10月, 2002 2 次提交
  10. 09 10月, 2002 1 次提交
  11. 05 10月, 2002 2 次提交
    • T
      Fix a couple of grammatical errors in error messages. · b8dcb505
      Tom Lane 提交于
      b8dcb505
    • 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
  12. 04 10月, 2002 3 次提交
  13. 03 10月, 2002 2 次提交
  14. 25 9月, 2002 2 次提交
  15. 23 9月, 2002 3 次提交
  16. 22 9月, 2002 1 次提交
  17. 20 9月, 2002 5 次提交
  18. 19 9月, 2002 1 次提交
    • T
      Extend pg_cast castimplicit column to a three-way value; this allows us · b26dfb95
      Tom Lane 提交于
      to be flexible about assignment casts without introducing ambiguity in
      operator/function resolution.  Introduce a well-defined promotion hierarchy
      for numeric datatypes (int2->int4->int8->numeric->float4->float8).
      Change make_const to initially label numeric literals as int4, int8, or
      numeric (never float8 anymore).
      Explicitly mark Func and RelabelType nodes to indicate whether they came
      from a function call, explicit cast, or implicit cast; use this to do
      reverse-listing more accurately and without so many heuristics.
      Explicit casts to char, varchar, bit, varbit will truncate or pad without
      raising an error (the pre-7.2 behavior), while assigning to a column without
      any explicit cast will still raise an error for wrong-length data like 7.3.
      This more nearly follows the SQL spec than 7.2 behavior (we should be
      reporting a 'completion condition' in the explicit-cast cases, but we have
      no mechanism for that, so just do silent truncation).
      Fix some problems with enforcement of typmod for array elements;
      it didn't work at all in 'UPDATE ... SET array[n] = foo', for example.
      Provide a generalized array_length_coerce() function to replace the
      specialized per-array-type functions that used to be needed (and were
      missing for NUMERIC as well as all the datetime types).
      Add missing conversions int8<->float4, text<->numeric, oid<->int8.
      initdb forced.
      b26dfb95
  19. 18 9月, 2002 2 次提交
  20. 13 9月, 2002 1 次提交