basebackup.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*-------------------------------------------------------------------------
  2. *
  3. * basebackup.h
  4. * Exports from replication/basebackup.c.
  5. *
  6. * Portions Copyright (c) 2010-2022, PostgreSQL Global Development Group
  7. *
  8. * src/include/backup/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. /*
  21. * Information about a tablespace
  22. *
  23. * In some usages, "path" can be NULL to denote the PGDATA directory itself.
  24. */
  25. typedef struct
  26. {
  27. char *oid; /* tablespace's OID, as a decimal string */
  28. char *path; /* full path to tablespace's directory */
  29. char *rpath; /* relative path if it's within PGDATA, else
  30. * NULL */
  31. int64 size; /* total size as sent; -1 if not known */
  32. } tablespaceinfo;
  33. extern void SendBaseBackup(BaseBackupCmd *cmd);
  34. #endif /* _BASEBACKUP_H */