1. 31 1月, 2011 1 次提交
    • M
      Add option to include WAL in base backup · 507069de
      Magnus Hagander 提交于
      When included, this makes the base backup a complete working
      "clone" of the initial database, ready to have a postmaster
      started against it without the need to set up any log archiving
      or similar.
      
      Magnus Hagander, reviewed by Fujii Masao and Heikki Linnakangas
      507069de
  2. 25 1月, 2011 1 次提交
  3. 24 1月, 2011 1 次提交
  4. 23 1月, 2011 1 次提交
    • M
      Add pg_basebackup tool for streaming base backups · 048d148f
      Magnus Hagander 提交于
      This tool makes it possible to do the pg_start_backup/
      copy files/pg_stop_backup step in a single command.
      
      There are still some steps to be done before this is a
      complete backup solution, such as the ability to stream
      the required WAL logs, but it's still usable, and
      could do with some buildfarm coverage.
      
      In passing, make the checkpoint request optionally
      fast instead of hardcoding it.
      
      Magnus Hagander, reviewed by Fujii Masao and Dimitri Fontaine
      048d148f
  5. 16 1月, 2011 1 次提交
    • M
      Enumerate available tablespaces after starting the backup · 3866ff61
      Magnus Hagander 提交于
      This closes a race condition where if a tablespace was created
      after the enumeration happened but before the do_pg_start_backup()
      was called, the backup would be incomplete. Now that it's done
      while we are in backup mode, WAL replay will recreate it during
      restore.
      
      Noted by Heikki.
      3866ff61
  6. 14 1月, 2011 2 次提交
    • M
      Use a lexer and grammar for parsing walsender commands · fcd810c6
      Magnus Hagander 提交于
      Makes it easier to parse mainly the BASE_BACKUP command
      with it's options, and avoids having to manually deal
      with quoted identifiers in the label (previously broken),
      and makes it easier to add new commands and options in
      the future.
      
      In passing, refactor the case statement in the walsender
      to put each command in it's own function.
      fcd810c6
    • M
      Exit from base backups when shutdown is requested · 688423d0
      Magnus Hagander 提交于
      When the exit waits until the whole backup completes, it may take
      a very long time.
      
      In passing, add back an error check in the main loop so we detect
      clients that disconnect much earlier if the backup is large.
      688423d0
  7. 12 1月, 2011 3 次提交
  8. 11 1月, 2011 2 次提交
  9. 10 1月, 2011 1 次提交
    • M
      Backend support for streaming base backups · 0eb59c45
      Magnus Hagander 提交于
      Add BASE_BACKUP command to walsender, allowing it to stream a
      base backup to the client (in tar format). The syntax is still
      far from ideal, that will be fixed in the switch to use a proper
      grammar for walsender.
      
      No client included yet, will come as a separate commit.
      
      Magnus Hagander and Heikki Linnakangas
      0eb59c45