Documentation
¶
Index ¶
- func GetIncludedPartitionRoots(tocDataEntries []MasterDataEntry, includeRelations []string) []string
- type AOEntry
- type IncrementalEntries
- type MasterDataEntry
- type MetadataEntry
- type SegmentDataEntry
- type SegmentTOC
- type StatementWithType
- type TOC
- func (toc *TOC) AddMasterDataEntry(schema string, name string, oid uint32, attributeString string, ...)
- func (toc *TOC) AddMetadataEntry(section string, entry MetadataEntry, start, end uint64)
- func (toc *TOC) GetDataEntriesMatching(includeSchemas []string, excludeSchemas []string, includeTableFQNs []string, ...) []MasterDataEntry
- func (toc *TOC) GetSQLStatementForObjectTypes(section string, metadataFile io.ReaderAt, includeObjectTypes []string, ...) []StatementWithType
- func (toc *TOC) InitializeMetadataEntryMap()
- func (toc *TOC) WriteToFileAndMakeReadOnly(filename string)
- type TOCObject
- type TOCObjectWithMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIncludedPartitionRoots ¶
func GetIncludedPartitionRoots(tocDataEntries []MasterDataEntry, includeRelations []string) []string
Types ¶
type IncrementalEntries ¶
type MasterDataEntry ¶
type MasterDataEntry struct {
Schema string
Name string
Oid uint32
AttributeString string
RowsCopied int64
PartitionRoot string
IsReplicated bool // https://github.com/greenplum-db/gpbackup/commit/3bd62da18ecaa3c4c49dbddba1fcfcbbe41c6f51
}
todo, "GPDB 7 is renaming the GPDB "master" to the "coordinator"", https://github.com/greenplum-db/gpbackup/commit/c2a8a3fefe579b8ac574bd952b2e012f9c43b9f8
type MetadataEntry ¶
type SegmentDataEntry ¶
type SegmentTOC ¶
type SegmentTOC struct {
DataEntries map[uint]SegmentDataEntry
}
func NewSegmentTOC ¶
func NewSegmentTOC(filename string) *SegmentTOC
func (*SegmentTOC) AddSegmentDataEntry ¶
func (toc *SegmentTOC) AddSegmentDataEntry(oid uint, startByte uint64, endByte uint64)
func (*SegmentTOC) WriteToFileAndMakeReadOnly ¶
func (toc *SegmentTOC) WriteToFileAndMakeReadOnly(filename string) error
type StatementWithType ¶
type StatementWithType struct {
Schema string
Name string
ObjectType string
ReferenceObject string
Statement string
ClassOID uint32
Oid uint32
}
func RemoveActiveRole ¶
func RemoveActiveRole(activeUser string, statements []StatementWithType) []StatementWithType
func SubstituteRedirectDatabaseInStatements ¶
func SubstituteRedirectDatabaseInStatements(statements []StatementWithType, oldQuotedName string, newQuotedName string) []StatementWithType
type TOC ¶
type TOC struct {
GlobalEntries []MetadataEntry
PredataEntries []MetadataEntry
PostdataEntries []MetadataEntry
StatisticsEntries []MetadataEntry
DataEntries []MasterDataEntry
IncrementalMetadata IncrementalEntries
// contains filtered or unexported fields
}
func (*TOC) AddMasterDataEntry ¶
func (*TOC) AddMetadataEntry ¶
func (toc *TOC) AddMetadataEntry(section string, entry MetadataEntry, start, end uint64)
func (*TOC) GetDataEntriesMatching ¶
func (*TOC) GetSQLStatementForObjectTypes ¶
func (*TOC) InitializeMetadataEntryMap ¶
func (toc *TOC) InitializeMetadataEntryMap()
func (*TOC) WriteToFileAndMakeReadOnly ¶
type TOCObject ¶
type TOCObject interface {
GetMetadataEntry() (string, MetadataEntry)
}
type TOCObjectWithMetadata ¶
type TOCObjectWithMetadata interface {
GetMetadataEntry() (string, MetadataEntry)
FQN() string
}
Click to show internal directories.
Click to hide internal directories.