1. 17 Oct, 2008 3 commits
  2. 16 Oct, 2008 3 commits
    • Neil Conway's avatar
      Fix a small memory leak in ExecReScanAgg() in the hashed aggregation case. · e034e517
      Neil Conway authored
      In the previous coding, the list of columns that needed to be hashed on
      was allocated in the per-query context, but we reallocated every time
      the Agg node was rescanned. Since this information doesn't change over
      a rescan, just construct the list of columns once during ExecInitAgg().
      e034e517
    • Tom Lane's avatar
      Reduce chatter from _dosmaperr() when used in FRONTEND code. · 0e3d5ad4
      Tom Lane authored
      ITAGAKI Takahiro
      0e3d5ad4
    • Tom Lane's avatar
      Fix SPI_getvalue and SPI_getbinval to range-check the given attribute number · bcf188a2
      Tom Lane authored
      according to the TupleDesc's natts, not the number of physical columns in the
      tuple.  The previous coding would do the wrong thing in cases where natts is
      different from the tuple's column count: either incorrectly report error when
      it should just treat the column as null, or actually crash due to indexing off
      the end of the TupleDesc's attribute array.  (The second case is probably not
      possible in modern PG versions, due to more careful handling of inheritance
      cases than we once had.  But it's still a clear lack of robustness here.)
      
      The incorrect error indication is ignored by all callers within the core PG
      distribution, so this bug has no symptoms visible within the core code, but
      it might well be an issue for add-on packages.  So patch all the way back.
      bcf188a2
  3. 14 Oct, 2008 10 commits
  4. 13 Oct, 2008 4 commits
  5. 11 Oct, 2008 1 commit
  6. 10 Oct, 2008 4 commits
  7. 09 Oct, 2008 8 commits
  8. 08 Oct, 2008 1 commit
  9. 07 Oct, 2008 6 commits
    • Bruce Momjian's avatar
      Update Japanese FAQ. · e2299981
      Bruce Momjian authored
      Jun Kuwamura
      e2299981
    • Tom Lane's avatar
      Improve some of the comments in fsmpage.c. · dd4c165b
      Tom Lane authored
      dd4c165b
    • Tom Lane's avatar
      Extend CTE patch to support recursive UNION (ie, without ALL). The · 0d115dde
      Tom Lane authored
      implementation uses an in-memory hash table, so it will poop out for very
      large recursive results ... but the performance characteristics of a
      sort-based implementation would be pretty unpleasant too.
      0d115dde
    • Michael Meskes's avatar
      Synced parser. · 059349be
      Michael Meskes authored
      059349be
    • Heikki Linnakangas's avatar
      When a relation is moved to another tablespace, we can't assume that we can · fa3938fc
      Heikki Linnakangas authored
      use the old relfilenode in the new tablespace. There might be another relation
      in the new tablespace with the same relfilenode, so we must generate a fresh
      relfilenode in the new tablespace.
      
      The 8.3 patch to let deleted relation files linger as zero-length files until
      the next checkpoint made this more obvious: moving a relation from one table
      space another, and then back again, caused a collision with the lingering
      file.
      
      Back-patch to 8.1. The issue is present in 8.0 as well, but it doesn't seem
      worth fixing there, because we didn't have protection from OID collisions
      after OID wraparound before 8.1.
      
      Report by Guillaume Lelarge.
      fa3938fc
    • Tom Lane's avatar
      Improve parser error location for cases where an INSERT or UPDATE command · 078aaf79
      Tom Lane authored
      supplies an expression that can't be coerced to the target column type.
      The code previously attempted to point at the target column name, which
      doesn't work at all in an INSERT with omitted column name list, and is
      also not remarkably helpful when the problem is buried somewhere in a
      long INSERT-multi-VALUES command.  Make it point at the failed expression
      instead.
      078aaf79