Postgresql 中文操作指南

77.2. Backup Manifest File Object #

描述单个文件的对象包含 Path 键或 Encoded-Path 键。通常,将出现 Path 键。关联的字符串值是相对于备份目录根目录的文件路径。位于用户定义表空间中的文件将具有开头两个组件为 pg_tblspc 和表空间 OID 的路径。如果路径不是合法的 UTF-8 字符串,或如果用户请求对所有文件使用已编码路径,那么会存在 Encoded-Path 键。这存储相同的数据,但它编码为十六进制数字字符串。字符串中的每对十六进制数字表示一个八位字节。

The object which describes a single file contains either a Path key or an Encoded-Path key. Normally, the Path key will be present. The associated string value is the path of the file relative to the root of the backup directory. Files located in a user-defined tablespace will have paths whose first two components are pg_tblspc and the OID of the tablespace. If the path is not a string that is legal in UTF-8, or if the user requests that encoded paths be used for all files, then the Encoded-Path key will be present instead. This stores the same data, but it is encoded as a string of hexadecimal digits. Each pair of hexadecimal digits in the string represents a single octet.

总会存在以下两个键:

The following two keys are always present:

  • Size

    • The expected size of this file, as an integer.

  • Last-Modified

    • The last modification time of the file as reported by the server at the time of the backup. Unlike the other fields stored in the backup, this field is not used by pg_verifybackup. It is included only for informational purposes.

如果已启用文件校验和进行备份,将出现以下键:

If the backup was taken with file checksums enabled, the following keys will be present:

  • Checksum-Algorithm

    • The checksum algorithm used to compute a checksum for this file. Currently, this will be the same for every file in the backup manifest, but this may change in future releases. At present, the supported checksum algorithms are CRC32C, SHA224, SHA256, SHA384, and SHA512.

  • Checksum

    • The checksum computed for this file, stored as a series of hexadecimal characters, two for each byte of the checksum.