Skip to content
Snippets Groups Projects
  1. Jun 18, 2004
  2. Jun 17, 2004
  3. Jun 16, 2004
    • Tom Lane's avatar
      Represent type-specific length coercion functions as pg_cast entries, · d70a42e6
      Tom Lane authored
      eliminating the former hard-wired convention about their names.  Allow
      pg_cast entries to represent both type coercion and length coercion in
      a single step --- this is represented by a function that takes an
      extra typmod argument, just like a length coercion function.  This
      nicely merges the type and length coercion mechanisms into something
      at least a little cleaner than we had before.  Make use of the single-
      coercion-step behavior to fix integer-to-bit coercion so that coercing
      to bit(n) yields the rightmost n bits of the integer instead of the
      leftmost n bits.  This should fix recurrent complaints about the odd
      behavior of this coercion.  Clean up the documentation of the bit string
      functions, and try to put it where people might actually find it.
      Also, get rid of the unreliable heuristics in ruleutils.c about whether
      to display nested coercion steps; instead require parse_coerce.c to
      label them properly in the first place.
      d70a42e6
  4. Jun 14, 2004
    • Tom Lane's avatar
    • Bruce Momjian's avatar
      New wording: · f4b0d28a
      Bruce Momjian authored
      <   in-progress when the server terminates abruptly
      >   in-progress when the server terminated abruptly
      f4b0d28a
    • Bruce Momjian's avatar
      New wording: · 8b8bbfff
      Bruce Momjian authored
      <   in-progress when the server crashed
      >   in-progress when the server terminates abruptly
      8b8bbfff
    • Bruce Momjian's avatar
      Updated wording: · dd83b34d
      Bruce Momjian authored
      < * Remove unreferenced table files and temp tables during database vacuum
      <   or postmaster startup (Bruce)
      > * Remove unreferenced table files created by transactions that were
      >   in-progress when the server crashed
      >
      dd83b34d
    • Bruce Momjian's avatar
      Re-add: · 75c8e51b
      Bruce Momjian authored
      > * Remove unreferenced table files and temp tables during database vacuum
      >   or postmaster startup (Bruce)
      75c8e51b
  5. Jun 13, 2004
  6. Jun 12, 2004
  7. Jun 11, 2004
    • Tom Lane's avatar
      When using extended-query protocol, postpone planning of unnamed statements · 7643bed5
      Tom Lane authored
      until Bind is received, so that actual parameter values are visible to the
      planner.  Make use of the parameter values for estimation purposes (but
      don't fold them into the actual plan).  This buys back most of the
      potential loss of plan quality that ensues from using out-of-line
      parameters instead of putting literal values right into the query text.
      
      This patch creates a notion of constant-folding expressions 'for
      estimation purposes only', in which case we can be more aggressive than
      the normal eval_const_expressions() logic can be.  Right now the only
      difference in behavior is inserting bound values for Params, but it will
      be interesting to look at other possibilities.  One that we've seen
      come up repeatedly is reducing now() and related functions to current
      values, so that queries like ... WHERE timestampcol > now() - '1 day'
      have some chance of being planned effectively.
      
      Oliver Jowett, with some kibitzing from Tom Lane.
      7643bed5
    • Bruce Momjian's avatar
      Attached is a patch that takes care of the PATHSEP issue. I made a more · 6cc4175b
      Bruce Momjian authored
      extensive change then what was suggested. I found the file path.c that
      contained a lot of "Unix/Windows" agnostic functions so I added a function
      there instead and removed the PATHSEP declaration in exec.c altogether. All
      to keep things from scattering all over the code.
      
      I also took the liberty of changing the name of the functions
      "first_path_sep" and "last_path_sep". Where I come from (and I'm apparently
      not alone given the former macro name PATHSEP), they should be called
      "first_dir_sep" and "last_dir_sep". The new function I introduced, that
      actually finds path separators, is now the "first_path_sep". The patch
      contains changes on all affected places of course.
      
      I also changed the documentation on dynamic_library_path to reflect the
      chagnes.
      
      Thomas Hallgren
      6cc4175b
  8. Jun 10, 2004
    • Bruce Momjian's avatar
      Done: · 387b38be
      Bruce Momjian authored
      > * -Print table names with constraint names in error messages, or make constraint
      387b38be
    • Bruce Momjian's avatar
      Reword: · 93db6f6a
      Bruce Momjian authored
      < * Allow hash buckets to fill disk pages, rather than being sparse
      > * Pack hash index buckets onto disk pages more efficiently
      93db6f6a
    • Bruce Momjian's avatar
      Add: · 13c30084
      Bruce Momjian authored
      > * Allow pg_dump to use multiple -t and -n switches
      13c30084
    • Bruce Momjian's avatar
      Modify: · 741681b7
      Bruce Momjian authored
      < * Order heap pointers on hash index pages by hash value and ctid
      > * Allow hash buckets to fill disk pages, rather than being sparse
      741681b7
    • Bruce Momjian's avatar
      Add Brazilian version of FAQ. · c7099997
      Bruce Momjian authored
      Euler Taveira de Oliveira
      c7099997
    • Bruce Momjian's avatar
      Add: · babd02af
      Bruce Momjian authored
      > * Order heap pointers on hash index pages by hash value and ctid
      babd02af
  9. Jun 09, 2004
    • Tom Lane's avatar
      Support assignment to subfields of composite columns in UPDATE and INSERT. · 7e64dbc6
      Tom Lane authored
      As a side effect, cause subscripts in INSERT targetlists to do something
      more or less sensible; previously we evaluated such subscripts and then
      effectively ignored them.  Another side effect is that UPDATE-ing an
      element or slice of an array value that is NULL now produces a non-null
      result, namely an array containing just the assigned-to positions.
      7e64dbc6
    • Bruce Momjian's avatar
      Add: · 69616f96
      Bruce Momjian authored
      > * Add ON COMMIT capability to CREATE TABLE AS SELECT
      69616f96
  10. Jun 08, 2004
  11. Jun 07, 2004
  12. Jun 06, 2004
    • Tom Lane's avatar
      Infrastructure for I/O of composite types: arrange for the I/O routines · c541bb86
      Tom Lane authored
      of a composite type to get that type's OID as their second parameter,
      in place of typelem which is useless.  The actual changes are mostly
      centralized in getTypeInputInfo and siblings, but I had to fix a few
      places that were fetching pg_type.typelem for themselves instead of
      using the lsyscache.c routines.  Also, I renamed all the related variables
      from 'typelem' to 'typioparam' to discourage people from assuming that
      they necessarily contain array element types.
      c541bb86
  13. Jun 04, 2004
  14. Jun 03, 2004
    • Bruce Momjian's avatar
      Add PGETC (for pg_service.conf) and PGLOCALE (for locale dir) · 68708433
      Bruce Momjian authored
      environment variable processing to libpq.
      
      The patch also adds code to our client apps so we set the environment
      variable directly based on our binary location, unless it is already
      set. This will allow our applications to emit proper locale messages
      that are generated in libpq.
      68708433
  15. Jun 02, 2004
    • Bruce Momjian's avatar
      Small patch that adds some documentation for the area() function. · 70f5a87e
      Bruce Momjian authored
      Specifically, point out that intersecting points in a path will yield
      (most likely), unexpected results.  Visually these are identical paths,
      but mathematically they're not the same.  Ex:
      
        area |                                           plan
      ------
      +-----------------------------------------------------------------------
      -------------------
          -0 | ((0,0),(0,1),(2,1),(2,2),(1,2),(1,0),(0,0))
           2 | ((0,0),(0,1),(1,1),(1,2),(2,2),(2,1),(1,1),(1,0),(0,0))
      
      The current algorithm for area(PATH) is very quick, but only handles
      non-intersecting paths.  I'm going to work on two other functions for
      the PATH data type that determines if a PATH is intersecting or not,
      and a function that returns the area() for an intersecting PATH.  The
      intersecting area() function will be considerably slower (I think it's
      going to be O(n!) or worse instead of the current O(n), but that comes
      with the territory).
      
      Sean Chittenden
      70f5a87e
    • Bruce Momjian's avatar
      Improve without cluster wording. · 36ae5efa
      Bruce Momjian authored
      36ae5efa
    • Bruce Momjian's avatar
      OK, here's the final version of ALTER TABLE ... SET WITHOUT CLUSTER. · 1cdc5872
      Bruce Momjian authored
      Has docs + regression test.
      
      Christopher Kings-Lynne
      1cdc5872
  16. Jun 01, 2004
    • Tom Lane's avatar
      Align GRANT/REVOKE behavior more closely with the SQL spec, per discussion · 4b2dafcc
      Tom Lane authored
      of bug report #1150.  Also, arrange that the object owner's irrevocable
      grant-option permissions are handled implicitly by the system rather than
      being listed in the ACL as self-granted rights (which was wrong anyway).
      I did not take the further step of showing these permissions in an
      explicit 'granted by _SYSTEM' ACL entry, as that seemed more likely to
      bollix up existing clients than to do anything really useful.  It's still
      a possible future direction, though.
      4b2dafcc
  17. May 31, 2004
Loading