1. 13 Nov, 2002 4 commits
  2. 12 Nov, 2002 5 commits
  3. 11 Nov, 2002 9 commits
  4. 10 Nov, 2002 10 commits
  5. 09 Nov, 2002 1 commit
  6. 08 Nov, 2002 11 commits
    • Tom Lane's avatar
    • Bruce Momjian's avatar
      This patch removes a bunch of superfluous #include directives: if · bea47921
      Bruce Momjian authored
      postgres.h or c.h includes a system header (such as stdio.h or
      stdlib.h), there's no need to specifically include it in any of the .c
      files in the backend.
      
      Neil Conway
      bea47921
    • Bruce Momjian's avatar
      Clean up format of SQL. · a5715eec
      Bruce Momjian authored
      a5715eec
    • Bruce Momjian's avatar
      The attached patch defines functions for getting distances between · 4c1383ef
      Bruce Momjian authored
      points on the surface of the earth and locating points within a
      specified distance using an index based on the contrib/cube package. The
      new functions are all of language type sql. A couple of bugs in the old
      earthdistance function based on the point datatype are fixed. A
      regression test has been added for both sets of functions. The README
      file has been updated to include documentation on the new stuff. There
      are comments about how this package is also useful for Astronomers.
      
      Bruno Wolff III
      4c1383ef
    • Tom Lane's avatar
      Revise geometry regression testing to eliminate most cross-platform · 337f73b1
      Tom Lane authored
      variation.  To do this, set extra_float_digits to -3 in the geometry
      test, and tweak the CIRCLE_TBL dataset to avoid values that suffer
      from severe cancellation error (eg, circles that just touch an axis).
      We still need two geometry 'expected' files to account for the
      difference between platforms that display minus zero as '-0' and those
      that just say '0', but with luck that's all we'll need.
      337f73b1
    • Bruce Momjian's avatar
      Here is a patch that does just that, while maintaining the · b26dfbb0
      Bruce Momjian authored
      "traditional" behavior, so the change should be transparent. Use the
      command "\pset pager always" to turn it on. Anything else does the
      normal toggle between "on" and "off"
      
      Greg Sabino Mullane
      b26dfbb0
    • Tom Lane's avatar
      Replace imprecise value of PI with a better one, and tweak circle_poly · c2b716ab
      Tom Lane authored
      in hopes of reducing platform-to-platform variations in its results.
      This will cause the geometry regression test to start failing on some
      platforms.  I plan to update the test later today.
      c2b716ab
    • Bruce Momjian's avatar
      Add name: · cea53888
      Bruce Momjian authored
      > * -Add GUC variables to control floating number output digits (Pedro Ferreira)
      cea53888
    • Bruce Momjian's avatar
      Mark as done: · 3e6bef68
      Bruce Momjian authored
      > * -Add GUC variables to control floating number output digits
      3e6bef68
    • Tom Lane's avatar
      Add extra_float_digits GUC parameter to allow adjustment of displayed · d2c744aa
      Tom Lane authored
      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
    • Bruce Momjian's avatar
      The "Allow easy display of usernames in a group (pg_hba.conf uses groups · fef731d1
      Bruce Momjian authored
      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