1. 03 8月, 2017 10 次提交
    • T
      Fix filerep checksum bug. · e24eff92
      Taylor Vesely 提交于
      During resync, filerep copied block with out-of-date checksum over from primary
      to mirror. This caused checksum verification failure later on the mirror side,
      and also caused inconsistency between the two on disk images of primary and
      mirror.
      
      The fix introduced here will always recompute the checksum during resync.
      
      The performance impact is very low, since we only recompute the checksum for
      changed blocks. However, for the full copy, we will recompute checksum for all
      the blocks to be copied. We have to do it, because there is no easy way to
      gurantee there no other changes like hint bit change during resync, since it's
      an online operation.
      
      Also fixed wrong comments regarding to page lsn.
      Signed-off-by: NXin Zhang <xzhang@pivotal.io>
      e24eff92
    • S
      Fix checksums for CLUSTER, VACUUM FULL etc. · 058527bc
      Simon Riggs 提交于
      In CLUSTER, VACUUM FULL and ALTER TABLE SET TABLESPACE
      I erroneously set checksum before log_newpage, which
      sets the LSN and invalidates the checksum. So set
      checksum immediately *after* log_newpage.
      
      Bug report Fujii Masao, Fix and patch by Jeff Davis
      
      (cherry picked from commit cf8dc9e1)
      058527bc
    • T
      Suppress uninitialized-variable warning in new checksum code. · cbb4795e
      Tom Lane 提交于
      Some compilers understand that this coding is safe, and some don't.
      
      (cherry picked from commit 4912385b)
      Signed-off-by: NTaylor Vesely <tvesely@pivotal.io>
      cbb4795e
    • S
      Add new README file for pages/checksums · 696816bb
      Simon Riggs 提交于
      (cherry picked from commit 9df56f6d)
      696816bb
    • A
      Bug Fix of checksum for `create database` · 44ea018d
      Asim R P 提交于
      Signed-off-by: NXin Zhang <xzhang@pivotal.io>
      44ea018d
    • A
      Add test for heap checksums · da3178dd
      Abhijit Subramanya 提交于
      This test is based on ao_checksum_corruption.sql.
      
      We added new UDF `invalidate_buffers()` to invalidate buffers for given
      relation, so that we can read the content from the corrupted file again.
      
      We tested corruptions on heap table, toast table, btree and bitmap indexes.
      Signed-off-by: NXin Zhang <xzhang@pivotal.io>
      da3178dd
    • N
      Adding HEAP_CHECKSUM to gpinitsystem · ee53d9ab
      Nadeem Ghani 提交于
      This is a new config option, on by default.
      Signed-off-by: NMarbin Tan <mtan@pivotal.io>
      ee53d9ab
    • S
      Allow I/O reliability checks using 16-bit checksums · ed0efd2a
      Simon Riggs 提交于
      Checksums are set immediately prior to flush out of shared buffers
      and checked when pages are read in again. Hint bit setting will
      require full page write when block is dirtied, which causes various
      infrastructure changes. Extensive comments, docs and README.
      
      WARNING message thrown if checksum fails on non-all zeroes page;
      ERROR thrown but can be disabled with ignore_checksum_failure = on.
      
      Feature enabled by an initdb option, since transition from option off
      to option on is long and complex and has not yet been implemented.
      Default is not to use checksums.
      
      Checksum used is WAL CRC-32 truncated to 16-bits.
      
      Simon Riggs, Jeff Davis, Greg Smith
      Wide input and assistance from many community members. Thank you.
      
      (cherry picked from commit 96ef3b8f)
      ed0efd2a
    • S
      Remove PageSetTLI and rename pd_tli to pd_checksum · 626df6b4
      Simon Riggs 提交于
      Remove use of PageSetTLI() from all page manipulation functions
      and adjust README to indicate change in the way we make changes
      to pages. Repurpose those bytes into the pd_checksum field and
      explain how that works in comments about page header.
      
      Refactoring ahead of actual feature patch which would make use
      of the checksum field, arriving later.
      
      Jeff Davis, with comments and doc changes by Simon Riggs
      Direction suggested by Robert Haas; many others providing
      review comments.
      
      (cherry picked from bb7cc262)
      626df6b4
    • B
      Fix memory leak while print missing column stats · 71752344
      Bhuvnesh Chaudhary 提交于
      Relation metadata reference was added twice due to which
      memory leak is detected and PQO fallsback to planner. This patch
      removes redundant AddRef for Relation Metadata and fixes fallback.
      Signed-off-by: NEkta Khanna <ekhanna@pivotal.io>
      71752344
  2. 02 8月, 2017 9 次提交
  3. 01 8月, 2017 7 次提交
  4. 31 7月, 2017 6 次提交
  5. 29 7月, 2017 6 次提交
  6. 28 7月, 2017 2 次提交