1. 18 10月, 2008 1 次提交
    • T
      During repeated rescan of GiST index it's possible that scan key · beeb3562
      Teodor Sigaev 提交于
      is NULL but SK_SEARCHNULL is not set. Add checking IS NULL of keys
      to set during key initialization. If key is NULL and SK_SEARCHNULL is not
      set then nothnig can be satisfied.
      With assert-enabled compilation that causes coredump.
      
      Bug was introduced in 8.3 by support of IS NULL index scan.
      beeb3562
  2. 17 10月, 2008 1 次提交
  3. 16 10月, 2008 2 次提交
    • T
      Reduce chatter from _dosmaperr() when used in FRONTEND code. · 0e3d5ad4
      Tom Lane 提交于
      ITAGAKI Takahiro
      0e3d5ad4
    • T
      Fix SPI_getvalue and SPI_getbinval to range-check the given attribute number · bcf188a2
      Tom Lane 提交于
      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
  4. 15 10月, 2008 5 次提交
  5. 14 10月, 2008 6 次提交
  6. 13 10月, 2008 3 次提交
  7. 11 10月, 2008 2 次提交
  8. 10 10月, 2008 9 次提交
  9. 09 10月, 2008 2 次提交
  10. 08 10月, 2008 4 次提交
  11. 07 10月, 2008 5 次提交
    • M
      Synced parser. · 059349be
      Michael Meskes 提交于
      059349be
    • H
      When a relation is moved to another tablespace, we can't assume that we can · fa3938fc
      Heikki Linnakangas 提交于
      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
    • T
      Improve parser error location for cases where an INSERT or UPDATE command · 078aaf79
      Tom Lane 提交于
      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
    • B
      Improve backend flowchart to show more detail. · a6586c0d
      Bruce Momjian 提交于
      a6586c0d
    • T
      Fix oversight in recent patch to support multiple read positions in · 34f89cb4
      Tom Lane 提交于
      tuplestore: in READFILE state tuplestore_select_read_pointer must
      save the current file seek position in the read pointer being
      deactivated.
      34f89cb4