basebackup.h 833 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*-------------------------------------------------------------------------
  2. *
  3. * basebackup.h
  4. * Exports from replication/basebackup.c.
  5. *
  6. * Portions Copyright (c) 2010-2016, PostgreSQL Global Development Group
  7. *
  8. * src/include/replication/basebackup.h
  9. *
  10. *-------------------------------------------------------------------------
  11. */
  12. #ifndef _BASEBACKUP_H
  13. #define _BASEBACKUP_H
  14. #include "nodes/replnodes.h"
  15. /*
  16. * Minimum and maximum values of MAX_RATE option in BASE_BACKUP command.
  17. */
  18. #define MAX_RATE_LOWER 32
  19. #define MAX_RATE_UPPER 1048576
  20. typedef struct
  21. {
  22. char *oid;
  23. char *path;
  24. char *rpath; /* relative path within PGDATA, or NULL */
  25. int64 size;
  26. } tablespaceinfo;
  27. extern void SendBaseBackup(BaseBackupCmd *cmd);
  28. extern int64 sendTablespace(char *path, bool sizeonly);
  29. #endif /* _BASEBACKUP_H */