Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

cluster.h

Blame
    • Alvaro Herrera's avatar
      b40776d2
      Have CLUSTER advance the table's relfrozenxid. The new frozen point is the · b40776d2
      Alvaro Herrera authored
      FreezeXid introduced in a recent commit, so there isn't any data loss in this
      approach.
      
      Doing it causes ALTER TABLE (or rather, the forms of it that cause a full table
      rewrite) to be affected as well.  In this case, the frozen point is RecentXmin,
      because after the rewrite all the tuples are relabeled with the rewriting
      transaction's Xid.
      
      TOAST tables are fixed automatically as well, as fallout of the way they were
      already being handled in the respective code paths.
      
      With this patch, there is no longer need to VACUUM tables for Xid wraparound
      purposes that have been cleaned up via TRUNCATE or CLUSTER.
      b40776d2
      History
      Have CLUSTER advance the table's relfrozenxid. The new frozen point is the
      Alvaro Herrera authored
      FreezeXid introduced in a recent commit, so there isn't any data loss in this
      approach.
      
      Doing it causes ALTER TABLE (or rather, the forms of it that cause a full table
      rewrite) to be affected as well.  In this case, the frozen point is RecentXmin,
      because after the rewrite all the tuples are relabeled with the rewriting
      transaction's Xid.
      
      TOAST tables are fixed automatically as well, as fallout of the way they were
      already being handled in the respective code paths.
      
      With this patch, there is no longer need to VACUUM tables for Xid wraparound
      purposes that have been cleaned up via TRUNCATE or CLUSTER.