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

backend

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Heikki Linnakangas authored
    truncations in FSM code, call FreeSpaceMapTruncateRel from smgr_redo. To
    make that cleaner from modularity point of view, move the WAL-logging one
    level up to RelationTruncate, and move RelationTruncate and all the
    related WAL-logging to new src/backend/catalog/storage.c file. Introduce
    new RelationCreateStorage and RelationDropStorage functions that are used
    instead of calling smgrcreate/smgrscheduleunlink directly. Move the
    pending rel deletion stuff from smgrcreate/smgrscheduleunlink to the new
    functions. This leaves smgr.c as a thin wrapper around md.c; all the
    transactional stuff is now in storage.c.
    
    This will make it easier to add new forks with similar truncation logic,
    like the visibility map.
    33960006
    History