diff options
author | Philip Warner <pjw@rhyme.com.au> | 2000-07-21 11:43:26 +0000 |
---|---|---|
committer | Philip Warner <pjw@rhyme.com.au> | 2000-07-21 11:43:26 +0000 |
commit | c3e18804ff14f690a6d8c31b452476d0f8fcec28 (patch) | |
tree | f5ebfec9d67a2469c4dfda81fb214e87508eb609 /src/bin/pg_dump/pg_backup_tar.h | |
parent | e8f69be054e9343b3c41d7e77cc142913ee55439 (diff) | |
download | postgresql-c3e18804ff14f690a6d8c31b452476d0f8fcec28.tar.gz postgresql-c3e18804ff14f690a6d8c31b452476d0f8fcec28.zip |
- Support for TAR output
- Support for BLOB output from pg_dump and input via pg_restore
- Support for direct DB connection in pg_restore
- Fixes in support for --insert flag
- pg_dump now outputs in modified OID order
Diffstat (limited to 'src/bin/pg_dump/pg_backup_tar.h')
-rw-r--r-- | src/bin/pg_dump/pg_backup_tar.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/bin/pg_dump/pg_backup_tar.h b/src/bin/pg_dump/pg_backup_tar.h new file mode 100644 index 00000000000..9ae150b4b51 --- /dev/null +++ b/src/bin/pg_dump/pg_backup_tar.h @@ -0,0 +1,35 @@ +/* Header +Offset Length Contents + 0 100 bytes File name ('\0' terminated, 99 maxmum length) +100 8 bytes File mode (in octal ascii) +108 8 bytes User ID (in octal ascii) +116 8 bytes Group ID (in octal ascii) +124 12 bytes File size (s) (in octal ascii) +136 12 bytes Modify time (in octal ascii) +148 8 bytes Header checksum (in octal ascii) +156 1 bytes Link flag +157 100 bytes Linkname ('\0' terminated, 99 maxmum length) +257 8 bytes Magic ("ustar \0") +265 32 bytes User name ('\0' terminated, 31 maxmum length) +297 32 bytes Group name ('\0' terminated, 31 maxmum length) +329 8 bytes Major device ID (in octal ascii) +337 8 bytes Minor device ID (in octal ascii) +345 167 bytes Padding +512 (s+p)bytes File contents (s+p) := (((s) + 511) & ~511), round up to 512 bytes +*/ + + + + +/* The linkflag defines the type of file */ +#define LF_OLDNORMAL '\0' /* Normal disk file, Unix compatible */ +#define LF_NORMAL '0' /* Normal disk file */ +#define LF_LINK '1' /* Link to previously dumped file */ +#define LF_SYMLINK '2' /* Symbolic link */ +#define LF_CHR '3' /* Character special file */ +#define LF_BLK '4' /* Block special file */ +#define LF_DIR '5' /* Directory */ +#define LF_FIFO '6' /* FIFO special file */ +#define LF_CONTIG '7' /* Contiguous file */ + + |