Skip to content

Constants

pgdumplib.constants

Constants used in the reading and writing of a :command:pg_dump file. There are additional undocumented constants, but they should not be of concern unless you are hacking on the library itself.

FORMATS = ['Unknown', 'Custom', 'Files', 'Tar', 'Null', 'Directory'] module-attribute

Specifies the compression algorithm used

K_OFFSET_POS_NOT_SET = 1 module-attribute

Specifies the entry has data but no offset

K_OFFSET_POS_SET = 2 module-attribute

Specifies the entry has data and an offset

K_OFFSET_NO_DATA = 3 module-attribute

Specifies the entry has no data

MIN_VER = (1, 12, 0) module-attribute

The minumum supported version of pg_dump files ot support

MAX_VER = (1, 16, 0) module-attribute

The maximum supported version of pg_dump files ot support

SECTION_NONE = 'None' module-attribute

Non-specific section for an entry in a dump's table of contents

SECTION_PRE_DATA = 'Pre-Data' module-attribute

Pre-data section for an entry in a dump's table of contents

SECTION_DATA = 'DATA' module-attribute

Data section for an entry in a dump's table of contents

SECTION_POST_DATA = 'Post-Data' module-attribute

Post-data section for an entry in a dump's table of contents

VERSION = (1, 14, 0) module-attribute

pg_dump file format version to create by default