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

xlog.c

Blame
    • Fujii Masao's avatar
      dd85acf0
      Make recovery rename tablespace_map to *.old if backup_label is not present. · dd85acf0
      Fujii Masao authored
      If tablespace_map file is present without backup_label file, there is
      no use of such file.  There is no harm in retaining it, but it is better
      to get rid of the map file so that we don't have any redundant file
      in data directory and it will avoid any sort of confusion. It seems
      prudent though to just rename the file out of the way rather than
      delete it completely, also we ignore any error that occurs in rename
      operation as even if map file is present without backup_label file,
      it is harmless.
      
      Back-patch to 9.5 where tablespace_map file was introduced.
      
      Amit Kapila, reviewed by Robert Haas, Alvaro Herrera and me.
      dd85acf0
      History
      Make recovery rename tablespace_map to *.old if backup_label is not present.
      Fujii Masao authored
      If tablespace_map file is present without backup_label file, there is
      no use of such file.  There is no harm in retaining it, but it is better
      to get rid of the map file so that we don't have any redundant file
      in data directory and it will avoid any sort of confusion. It seems
      prudent though to just rename the file out of the way rather than
      delete it completely, also we ignore any error that occurs in rename
      operation as even if map file is present without backup_label file,
      it is harmless.
      
      Back-patch to 9.5 where tablespace_map file was introduced.
      
      Amit Kapila, reviewed by Robert Haas, Alvaro Herrera and me.