Documentation
¶
Index ¶
- Constants
- Variables
- func ApplyFileIncrement(fileName string, increment io.Reader, createNewIncrementalFiles bool, ...) error
- func BackupCopyingInfo(backup Backup, from storage.Folder, to storage.Folder) ([]copy.InfoProvider, error)
- func CleanupPrefetchDirectories(walFileName string, location string, cleaner Cleaner)
- func Connect(ctx context.Context, configOptions ...func(config *pgx.ConnConfig) error) (*pgx.Conn, error)
- func CreateFileFromIncrement(increment io.Reader, target ReadWriterAt) (int64, error)
- func DeduceBackupName(object storage.Object) string
- func ExtractDeleteGarbagePredicate(args []string) func(storage.Object) bool
- func GetBaseFilesToUnwrap(backupFileStates internal.BackupFileList, currentFilesToUnwrap map[string]bool) (map[string]bool, error)
- func GetDeltaFilenameFor(walFilename string) (string, error)
- func GetFetcherNew(dbDataDirectory, fileMask, restoreSpecPath string, skipRedundantTars bool, ...) internal.Fetcher
- func GetFetcherOld(dbDataDirectory, fileMask, restoreSpecPath string, extractProv ExtractProvider) internal.Fetcher
- func GetFirstWalFilename(backup Backup) (string, error)
- func GetIncrementHeaderFields(increment io.Reader) (uint64, uint32, []byte, error)
- func GetLastWalFilename(backup Backup) (string, error)
- func GetMissingWals(lastSeg uint64, lastTl, currentTl uint32, ...) ([]string, error)
- func GetNextWalFilename(name string) (string, error)
- func GetPermanentBackupsAndWals(folder storage.Folder) (map[PermanentObject]bool, map[PermanentObject]bool)
- func GetPgServerInfo(keepRunner bool) (pgInfo BackupPgInfo, runner *PgQueryRunner, err error)
- func GetPositionInDelta(walFilename string) int
- func GetRelFileIDFrom(filePath string) (int, error)
- func GetRelFileNodeFrom(filePath string) (*walparser.RelFileNode, error)
- func GetSegmentNoFromLsn(lsn LSN) uint64
- func GetWalFileName(filename string) string
- func HandleBackupVerify(rootFolder storage.Folder, backupName string, samplePct int, seed int64, ...) int
- func HandleCatchupFetch(folder storage.Folder, dbDirectory, backupName string, useNewUnwrap bool)
- func HandleCatchupPush(ctx context.Context, pgDataDirectory string, fromLSN LSN)
- func HandleCatchupReceive(pgDataDirectory string, port int)
- func HandleCatchupSend(pgDataDirectory string, destination string)
- func HandleCopy(fromConfigFile string, toConfigFile string, backupName string, ...)
- func HandleDaemon(options DaemonOptions)
- func HandleDetailedBackupList(folder storage.Folder, pretty bool, json bool)
- func HandleWALFetch(baseReader internal.StorageFolderReader, walFileName string, location string, ...) error
- func HandleWALPrefetch(folderReader internal.StorageFolderReader, walFileName string, location string) error
- func HandleWALPush(ctx context.Context, uploader *WalUploader, walFilePath string) error
- func HandleWALReceive(ctx context.Context, uploader *WalUploader)
- func HandleWALRestore(targetPath, sourcePath string, cloudFolder storage.Folder)
- func HandleWalShow(rootFolder storage.Folder, showBackups bool, outputWriter WalShowOutputWriter)
- func HandleWalVerify(checkTypes []WalVerifyCheckType, rootFolder storage.Folder, ...)
- func HistoryCopyingInfo(backup Backup, from storage.Folder, to storage.Folder, withAllHistory bool) ([]copy.InfoProvider, error)
- func IsPermanent(objectName, storageName string, ...) bool
- func IsPgControlRequired(backup Backup) bool
- func MergeDeployMetadataIntoUserData(meta DeployMetadata, userData interface{}) interface{}
- func ParseTimelineFromBackupName(backupName string) (uint32, error)
- func ParseTimelineFromString(timelineString string) (uint32, error)
- func ParseWALFilename(name string) (timelineID uint32, logSegNo uint64, err error)
- func PrepareDirs(fileName string, targetPath string) error
- func ProcessConnection(ctx context.Context, c net.Conn, multiSt *multistorage.Storage)
- func ReadIncrementFileHeader(reader io.Reader) error
- func ReadIncrementLocations(filePath string, fileSize int64, lsn LSN) ([]walparser.BlockLocation, error)
- func ReadIncrementalFile(filePath string, fileSize int64, lsn LSN, deltaBitmap *roaring.Bitmap) (fileReader io.ReadCloser, size int64, err error)
- func RestoreMissingPages(base io.Reader, target ReadWriterAt) error
- func SdNotify(state string) error
- func SelectRelFileBlocks(bitmap *roaring.Bitmap, relFileID int) *roaring.Bitmap
- func SendSdNotify(c <-chan time.Time)
- func SetDatabasePageSize(pageSize uint64)
- func SetWalSize(sizeMb uint64)
- func SetupSignalListener()
- func SortBackupDetails(backupDetails []BackupDetail)
- func ToPartFilename(deltaFilename string) string
- func TryFetchTimelineAndLogSegNo(objectName string) (uint32, uint64, bool)
- func TryGetOidPair(file string) (bool, uint32, uint32)
- func ValidateSlotName(pgSlotName string) (err error)
- func VerifyPagedFileBase(path string, fileInfo os.FileInfo, pagedFile io.Reader) ([]uint32, error)
- func VerifyPagedFileIncrement(path string, fileInfo os.FileInfo, increment io.Reader) ([]uint32, error)
- func WildcardInfo(from storage.Folder, to storage.Folder) ([]copy.InfoProvider, error)
- func WritePagesFromIncrement(increment io.Reader, target ReadWriterAt, overwriteExisting bool) (int64, error)
- type ArchiveMessageHandler
- type Backup
- func (backup *Backup) FetchMeta() (ExtendedMetadataDto, error)
- func (backup *Backup) GetFilesToUnwrap(fileMask string) (map[string]bool, error)
- func (backup *Backup) GetSentinel() (BackupSentinelDto, error)
- func (backup *Backup) GetSentinelAndFilesMetadata() (BackupSentinelDto, FilesMetadataDto, error)
- func (backup *Backup) GetTarNames() ([]string, error)
- type BackupArguments
- type BackupDetail
- type BackupFileOptions
- type BackupFileUnwrapper
- type BackupHandler
- type BackupObject
- type BackupPgInfo
- type BackupSearchParams
- type BackupSentinelDto
- type BackupSentinelDtoV2
- type BackupTerminator
- type BackupTimeSlicesOrder
- type BackupVerifyResult
- type BackupVerifyTier
- type BackupWorkers
- type BgUploader
- type Bundle
- func (bundle *Bundle) DownloadDeltaMap(reader internal.StorageFolderReader, backupStartLSN LSN) error
- func (bundle *Bundle) FinishTarComposer() (internal.TarFileSets, error)
- func (bundle *Bundle) GetFiles() *sync.Map
- func (bundle *Bundle) HandleWalkedFSObject(path string, info os.FileInfo, err error) error
- func (bundle *Bundle) NewTarBall(dedicatedUploader bool) internal.TarBall
- func (bundle *Bundle) SetupComposer(composerMaker TarBallComposerMaker) (err error)
- func (bundle *Bundle) StartBackup(ctx context.Context, queryRunner *PgQueryRunner, backup string) (backupName string, lsn LSN, err error)
- func (bundle *Bundle) UploadPgControl(compressorFileExtension string) error
- type BytesPerWalSegmentError
- type CantDiscardWalDataError
- type CantOverwriteWalFileError
- type CatchupCommandDto
- type CatchupDeltaBackupConfigurator
- type CatchupFileUnwrapper
- type CheckMessageHandler
- type ChecksumCoverage
- type Cleaner
- type CopyTarBallComposer
- func (c *CopyTarBallComposer) AddFile(info *internal.ComposeFileInfo)
- func (c *CopyTarBallComposer) AddHeader(fileInfoHeader *tar.Header, info os.FileInfo) error
- func (c *CopyTarBallComposer) FinishComposing() (internal.TarFileSets, error)
- func (c *CopyTarBallComposer) GetFiles() internal.BundleFiles
- func (c *CopyTarBallComposer) SkipFile(tarHeader *tar.Header, fileInfo os.FileInfo)
- type CopyTarBallComposerMaker
- type CurBackupInfo
- type DaemonOptions
- type DaemonPrefetcher
- type DatabaseObjectsInfo
- type DatabasesByNames
- type DecoderReader
- type DefaultFileUnwrapper
- type DefaultRestoreDescMaker
- type DeleteHandler
- type DeltaBackupConfigurator
- type DeltaFile
- type DeltaFileChanWriter
- type DeltaFileManager
- func (manager *DeltaFileManager) CancelRecording(walFilename string)
- func (manager *DeltaFileManager) CombinePartFile(deltaFilename string, partFile *WalPartFile) error
- func (manager *DeltaFileManager) FlushDeltaFiles(ctx context.Context, uploader internal.Uploader, ...)
- func (manager *DeltaFileManager) FlushFiles(ctx context.Context, uploader internal.Uploader)
- func (manager *DeltaFileManager) FlushPartFiles() (completedPartFiles map[string]bool)
- func (manager *DeltaFileManager) GetBlockLocationConsumer(deltaFilename string) (chan walparser.BlockLocation, error)
- func (manager *DeltaFileManager) GetPartFile(deltaFilename string) (*WalPartFile, error)
- type DeltaFileWriterNotFoundError
- type DeltaNo
- type DeployMetadata
- type DeprecatedSentinelFields
- type DirDatabaseTarBallComposerMaker
- type ExtendedMetadataDto
- type ExtractProvider
- type ExtractProviderDBSpec
- type ExtractProviderImpl
- type FetchConfig
- type FileTarInterpreter
- type FileUnwrapResult
- type FileUnwrapResultType
- type FileUnwrapperType
- type FilesMetadataDto
- type FilesToExtractProvider
- type FilesToExtractProviderImpl
- type GenericMetaFetcher
- type GenericMetaInteractor
- type GenericMetaSetter
- type HistoryFileNotFoundError
- type IBackupFileUnwrapper
- type IncorrectBackupNameError
- type IncorrectLogSegNoError
- type IncrementDetailsFetcher
- type IncrementalPageReader
- func (pageReader *IncrementalPageReader) AdvanceFileReader() error
- func (pageReader *IncrementalPageReader) Close() error
- func (pageReader *IncrementalPageReader) DeltaBitmapInitialize(deltaBitmap *roaring.Bitmap)
- func (pageReader *IncrementalPageReader) DrainMoreData() (succeed bool, err error)
- func (pageReader *IncrementalPageReader) FullScanInitialize() error
- func (pageReader *IncrementalPageReader) Read(p []byte) (n int, err error)
- func (pageReader *IncrementalPageReader) SelectNewValidPage(pageBytes []byte, blockNo uint32) (valid bool)
- func (pageReader *IncrementalPageReader) WriteDiffMapToHeader(headerWriter io.Writer)
- type IncrementalTarInterpreter
- type IntegrityCheckDetails
- type IntegrityCheckRunner
- type IntegrityScanSegmentSequence
- type InvalidIncrementFileHeaderError
- type InvalidWalFileMagicError
- type LSN
- type NilWalParserError
- type NoBitmapFoundError
- type NoCorrectBackupFoundError
- type NoPostgresVersionError
- type NonEmptyDBDataDirectoryError
- type NopPrefetcher
- type NotWalFilenameError
- type PageHeader
- type PagedFileDeltaMap
- type PermanentObject
- type PgAliveWatcher
- type PgChecksummablePage
- type PgControlData
- type PgControlNotFoundError
- type PgDatabaseInfo
- type PgDatabasePage
- type PgQueryRunner
- func (queryRunner *PgQueryRunner) BuildGetDatabasesQuery() (string, error)
- func (queryRunner *PgQueryRunner) BuildStartBackup() (string, error)
- func (queryRunner *PgQueryRunner) BuildStatisticsQuery() (string, error)
- func (queryRunner *PgQueryRunner) BuildStopBackup() (string, error)
- func (queryRunner *PgQueryRunner) ForEachDatabase(ctx context.Context, ...) error
- func (queryRunner *PgQueryRunner) GetArchiveCommand(ctx context.Context) (string, error)
- func (queryRunner *PgQueryRunner) GetArchiveMode(ctx context.Context) (string, error)
- func (queryRunner *PgQueryRunner) GetDataChecksums(ctx context.Context) (string, error)
- func (queryRunner *PgQueryRunner) GetDataDir(ctx context.Context) (dataDir string, err error)
- func (queryRunner *PgQueryRunner) GetDatabaseInfos(ctx context.Context) ([]PgDatabaseInfo, error)
- func (queryRunner *PgQueryRunner) GetLockingPID(ctx context.Context) (int, error)
- func (queryRunner *PgQueryRunner) GetParameter(ctx context.Context, parameterName string) (string, error)
- func (queryRunner *PgQueryRunner) GetPhysicalSlotInfo(ctx context.Context, slotName string) (PhysicalSlot, error)
- func (queryRunner *PgQueryRunner) GetWalSegmentBytes(ctx context.Context) (segBlocks uint64, err error)
- func (queryRunner *PgQueryRunner) IsStandby(ctx context.Context) (bool, error)
- func (queryRunner *PgQueryRunner) IsTablespaceMapExists() bool
- func (queryRunner *PgQueryRunner) Ping() error
- func (queryRunner *PgQueryRunner) ReadTimeline(ctx context.Context) (timeline uint32, err error)
- func (queryRunner *PgQueryRunner) StartBackup(ctx context.Context, backup string) (backupName string, lsnString string, inRecovery bool, err error)
- func (queryRunner *PgQueryRunner) StopBackup(ctx context.Context) (label string, offsetMap string, lsnStr string, err error)
- func (queryRunner *PgQueryRunner) TryGetLock(ctx context.Context) (err error)
- type PgRelationStat
- type PhysicalSlot
- type PrevBackupInfo
- type ProcessMessageResult
- type QueryRunner
- type RatedComposeFileInfo
- type RatingTarBallComposer
- func (c *RatingTarBallComposer) AddFile(info *internal.ComposeFileInfo)
- func (c *RatingTarBallComposer) AddHeader(fileInfoHeader *tar.Header, info os.FileInfo) error
- func (c *RatingTarBallComposer) FinishComposing() (internal.TarFileSets, error)
- func (c *RatingTarBallComposer) GetFiles() internal.BundleFiles
- func (c *RatingTarBallComposer) SkipFile(tarHeader *tar.Header, fileInfo os.FileInfo)
- type RatingTarBallComposerMaker
- type ReachedStopSegmentError
- type ReadWriterAt
- type ReadWriterAtFileImpl
- type RegexpRestoreDescMaker
- type RegularDeltaBackupConfigurator
- type RegularPrefetcher
- type RegularTarBallComposer
- func (c *RegularTarBallComposer) AddFile(info *internal.ComposeFileInfo)
- func (c *RegularTarBallComposer) AddHeader(fileInfoHeader *tar.Header, info os.FileInfo) error
- func (c *RegularTarBallComposer) FinishComposing() (internal.TarFileSets, error)
- func (c *RegularTarBallComposer) GetFiles() internal.BundleFiles
- func (c *RegularTarBallComposer) SkipFile(tarHeader *tar.Header, fileInfo os.FileInfo)
- type RegularTarBallComposerMaker
- type RelFileStatistics
- type RestoreDesc
- type RestoreDescMaker
- type ScannedSegmentDescription
- type ScannedSegmentStatus
- type SegmentScanConfig
- type SkippedFileError
- type SocketMessageHandler
- type SocketMessageReader
- type SocketWriteFailedError
- type StatBundleFiles
- func (files *StatBundleFiles) AddFile(tarHeader *tar.Header, fileInfo os.FileInfo, isIncremented bool)
- func (files *StatBundleFiles) AddFileDescription(name string, backupFileDescription internal.BackupFileDescription)
- func (files *StatBundleFiles) AddFileWithCorruptBlocks(tarHeader *tar.Header, fileInfo os.FileInfo, isIncremented bool, ...)
- func (files *StatBundleFiles) AddSkippedFile(tarHeader *tar.Header, fileInfo os.FileInfo)
- func (files *StatBundleFiles) GetUnderlyingMap() *sync.Map
- type StreamingBaseBackup
- func (bb *StreamingBaseBackup) Archives(ctx context.Context) iter.Seq2[*archive, error]
- func (bb *StreamingBaseBackup) BackupName() string
- func (bb *StreamingBaseBackup) FileName() string
- func (bb *StreamingBaseBackup) Finish() (err error)
- func (bb *StreamingBaseBackup) GetTablespaceSpec() *TablespaceSpec
- func (bb *StreamingBaseBackup) Path() string
- func (bb *StreamingBaseBackup) Start(verifyChecksum bool, diskLimit int32) (err error)
- func (bb *StreamingBaseBackup) Upload(ctx context.Context, uploader internal.Uploader, ...) error
- type TableInfo
- type TablespaceLocation
- type TablespaceSpec
- func (spec *TablespaceSpec) BasePrefix() (string, bool)
- func (spec *TablespaceSpec) EnsureSymlinkExist(location TablespaceLocation) error
- func (spec *TablespaceSpec) MarshalJSON() ([]byte, error)
- func (spec *TablespaceSpec) TablespaceNames() []string
- func (spec *TablespaceSpec) UnmarshalJSON(b []byte) error
- type TarBallComposerMaker
- type TarBallComposerType
- type TarBallFilePackerImpl
- type TarBallFilePackerOptions
- type TarFilesCollection
- type TarSizeError
- type TarballStreamer
- type TarballStreamerRemap
- type TarballStreamerRemaps
- type TimeLineHistFile
- type TimeLineHistFileRow
- type TimelineCheckDetails
- type TimelineCheckRunner
- type TimelineHistoryRecord
- type TimelineInfo
- type TimelineWithSegmentNo
- type UnexpectedTarDataError
- type UnknownIncrementFileHeaderError
- type UnknownTableSpaceError
- type UnknownWalVerifyCheckError
- type UnsupportedPostgresVersionError
- type UnwrapResult
- type VerifyFileResult
- type WalDeltaRecorder
- type WalDeltaRecordingReader
- type WalFetchMessageHandler
- type WalMetadataDescription
- type WalMetadataUploader
- type WalPart
- type WalPartDataType
- type WalPartFile
- type WalPartRecorder
- type WalPrefetcher
- type WalSegment
- type WalSegmentDescription
- type WalSegmentNo
- type WalSegmentNotFoundError
- type WalSegmentRunner
- type WalSegmentScanner
- type WalSegmentsSequence
- type WalShowJSONOutputWriter
- type WalShowOutputType
- type WalShowOutputWriter
- type WalShowTableOutputWriter
- type WalUploader
- type WalVerifyCheckDetails
- type WalVerifyCheckResult
- type WalVerifyCheckRunner
- type WalVerifyCheckStatus
- type WalVerifyCheckType
- type WalVerifyJSONOutputWriter
- type WalVerifyOutputType
- type WalVerifyOutputWriter
- type WalVerifyTableOutputWriter
Constants ¶
const ( PgControlPath = "/global/pg_control" FilesMetadataName = "files_metadata.json" )
const ( PgControl = "pg_control" BackupLabelFilename = "backup_label" TablespaceMapFilename = "tablespace_map" TablespaceFolder = "pg_tblspc" )
const ( DeleteGarbageArchivesModifier = "ARCHIVES" DeleteGarbageBackupsModifier = "BACKUPS" )
const ( RelFileSizeBound = 1 << 30 DefaultSpcNode walparser.Oid = 1663 )
const ( // number of checksums to calculate in parallel NSums int = 32 // prime multiplier of FNV-1a hash FnvPrime uint32 = 16777619 // page header checksum offset PdChecksumOffset = 8 // page header checksum length (in bytes) PdChecksumLen = 2 MaxDatabasePageSize = 32768 )
const ( SignatureMagicNumber byte = 0x55 DefaultTablespace = "base" GlobalTablespace = "global" NonDefaultTablespace = "pg_tblspc" XactDir = "pg_xact" // Transaction status ClogDir = "pg_clog" // Legacy name for transaction status MultiXactDir = "pg_multixact" // Multi-transaction status )
const ( BasePrefix = "base_prefix" Tablespaces = "tablespaces" )
const ( WalFileInDelta uint64 = 16 DeltaFilenameSuffix string = "_delta" PartFilenameSuffix string = "_part" )
const ( WalBulkMetadataLevel = "BULK" WalIndividualMetadataLevel = "INDIVIDUAL" WalNoMetadataLevel = "NOMETADATA" )
const ( TimelineOkStatus = "OK" TimelineLostSegmentStatus = "LOST_SEGMENTS" )
const ( WalVerifyIntegrityCheck = iota + 1 WalVerifyTimelineCheck )
const MetadataDatetimeFormat = "%Y-%m-%dT%H:%M:%S.%fZ"
const PatternLSN = "[0-9A-F]{8}"
const PatternTimelineAndLogSegNo = "[0-9A-F]{24}"
const (
RecordPartFilename = "currentRecord.part"
)
const SIGUSR1 = syscall.SIGUSR1
const (
SdNotifyWatchdog = "WATCHDOG=1"
)
const (
StandbyMessageTimeout = time.Second * 10
)
Variables ¶
var BlocksInRelFile = int(RelFileSizeBound / DatabasePageSize)
var DatabasePageSize int64 = int64(walparser.BlockSize)
var ErrorBasePrefixMissing = fmt.Errorf("base prefix not set while working with tablespaces")
var ExcludedFilenames = make(map[string]utility.Empty)
var IncrementFileHeader = []byte{'w', 'i', '1', SignatureMagicNumber}
var UnwrapAll map[string]bool
var UtilityFilePaths = map[string]bool{ PgControlPath: true, BackupLabelFilename: true, TablespaceMapFilename: true, }
var WalMetadataLevels = []string{WalBulkMetadataLevel, WalIndividualMetadataLevel, WalNoMetadataLevel}
var (
WalSegmentSize = uint64(16 * 1024 * 1024)
)
Functions ¶
func ApplyFileIncrement ¶
func BackupCopyingInfo ¶
func Connect ¶
func Connect(ctx context.Context, configOptions ...func(config *pgx.ConnConfig) error) (*pgx.Conn, error)
Connect establishes a connection to postgres using a UNIX socket. Must export PGHOST and run with `sudo -E -u postgres`. If PGHOST is not set or if the connection fails, an error is returned and the connection is `<nil>`.
Example: PGHOST=/var/run/postgresql or PGHOST=10.0.0.1
func CreateFileFromIncrement ¶
func CreateFileFromIncrement(increment io.Reader, target ReadWriterAt) (int64, error)
func DeduceBackupName ¶
func GetBaseFilesToUnwrap ¶
func GetDeltaFilenameFor ¶
func GetFetcherNew ¶
func GetFetcherNew(dbDataDirectory, fileMask, restoreSpecPath string, skipRedundantTars bool, extractProv ExtractProvider, ) internal.Fetcher
func GetFetcherOld ¶
func GetFetcherOld(dbDataDirectory, fileMask, restoreSpecPath string, extractProv ExtractProvider) internal.Fetcher
func GetFirstWalFilename ¶
func GetLastWalFilename ¶
func GetMissingWals ¶
func GetMissingWals(lastSeg uint64, lastTl, currentTl uint32, tlToSeg map[uint32]*TimelineWithSegmentNo, walsByTimelines map[uint32]*WalSegmentsSequence, ) ([]string, error)
func GetNextWalFilename ¶
func GetPermanentBackupsAndWals ¶
func GetPermanentBackupsAndWals(folder storage.Folder) (map[PermanentObject]bool, map[PermanentObject]bool)
func GetPgServerInfo ¶
func GetPgServerInfo(keepRunner bool) (pgInfo BackupPgInfo, runner *PgQueryRunner, err error)
func GetPositionInDelta ¶
func GetRelFileIDFrom ¶
func GetRelFileNodeFrom ¶
func GetRelFileNodeFrom(filePath string) (*walparser.RelFileNode, error)
func GetSegmentNoFromLsn ¶
func GetWalFileName ¶
func HandleBackupVerify ¶ added in v0.15.1
func HandleCatchupFetch ¶
func HandleCatchupPush ¶
func HandleCatchupReceive ¶
func HandleCatchupSend ¶
func HandleCopy ¶
func HandleDaemon ¶
func HandleDaemon(options DaemonOptions)
func HandleWALFetch ¶
func HandleWALFetch(baseReader internal.StorageFolderReader, walFileName string, location string, prefetcher WalPrefetcher) error
func HandleWALPrefetch ¶
func HandleWALPrefetch(folderReader internal.StorageFolderReader, walFileName string, location string) error
func HandleWALPush ¶
func HandleWALPush(ctx context.Context, uploader *WalUploader, walFilePath string) error
func HandleWALReceive ¶
func HandleWALReceive(ctx context.Context, uploader *WalUploader)
func HandleWALRestore ¶
func HandleWalShow ¶
func HandleWalShow(rootFolder storage.Folder, showBackups bool, outputWriter WalShowOutputWriter)
func HandleWalVerify ¶
func HandleWalVerify( checkTypes []WalVerifyCheckType, rootFolder storage.Folder, currentWalSegment WalSegmentDescription, backupSearchParams BackupSearchParams, outputWriter WalVerifyOutputWriter, )
func HistoryCopyingInfo ¶
func IsPermanent ¶
func IsPermanent(objectName, storageName string, permanentBackups, permanentWals map[PermanentObject]bool) bool
func IsPgControlRequired ¶
func MergeDeployMetadataIntoUserData ¶ added in v0.15.1
func MergeDeployMetadataIntoUserData(meta DeployMetadata, userData interface{}) interface{}
func ParseTimelineFromString ¶
func ParseWALFilename ¶
func PrepareDirs ¶
func ProcessConnection ¶
func ReadIncrementFileHeader ¶
func ReadIncrementLocations ¶
func ReadIncrementalFile ¶
func RestoreMissingPages ¶
func RestoreMissingPages(base io.Reader, target ReadWriterAt) error
func SelectRelFileBlocks ¶
func SendSdNotify ¶
func SetDatabasePageSize ¶
func SetDatabasePageSize(pageSize uint64)
func SetWalSize ¶
func SetWalSize(sizeMb uint64)
func SetupSignalListener ¶
func SetupSignalListener()
func SortBackupDetails ¶
func SortBackupDetails(backupDetails []BackupDetail)
func ToPartFilename ¶
func ValidateSlotName ¶
ValidateSlotName validates pgSlotName to be a valid slot name
func VerifyPagedFileBase ¶
VerifyPagedFileBase verifies pages of a standard paged file
func VerifyPagedFileIncrement ¶
func VerifyPagedFileIncrement(path string, fileInfo os.FileInfo, increment io.Reader) ([]uint32, error)
VerifyPagedFileIncrement verifies pages of an increment
func WildcardInfo ¶
func WritePagesFromIncrement ¶
Types ¶
type ArchiveMessageHandler ¶
type ArchiveMessageHandler struct {
// contains filtered or unexported fields
}
type Backup ¶
type Backup struct {
internal.Backup
SentinelDto *BackupSentinelDto // used for storage query caching
FilesMetadataDto *FilesMetadataDto
}
func NewBackupInStorage ¶
func ToPgBackup ¶
func (*Backup) FetchMeta ¶
func (backup *Backup) FetchMeta() (ExtendedMetadataDto, error)
func (*Backup) GetFilesToUnwrap ¶
func (*Backup) GetSentinel ¶
func (backup *Backup) GetSentinel() (BackupSentinelDto, error)
func (*Backup) GetSentinelAndFilesMetadata ¶
func (backup *Backup) GetSentinelAndFilesMetadata() (BackupSentinelDto, FilesMetadataDto, error)
func (*Backup) GetTarNames ¶
type BackupArguments ¶
type BackupArguments struct {
Uploader internal.Uploader
// contains filtered or unexported fields
}
func NewBackupArguments ¶
func NewBackupArguments(uploader internal.Uploader, pgDataDirectory string, backupsFolder string, isPermanent bool, verifyPageChecksums bool, isFullBackup bool, storeAllCorruptBlocks bool, tarBallComposerType TarBallComposerType, deltaConfigurator DeltaBackupConfigurator, userData interface{}, withoutFilesMetadata bool) BackupArguments
func (*BackupArguments) EnablePreventConcurrentBackups ¶
func (ba *BackupArguments) EnablePreventConcurrentBackups()
type BackupDetail ¶
type BackupDetail struct {
internal.BackupTime
ExtendedMetadataDto
}
BackupDetail is used to append ExtendedMetadataDto details to BackupTime struct
func GetBackupDetails ¶
func GetBackupDetails(folder storage.Folder, backupTime internal.BackupTime) (BackupDetail, error)
func GetBackupsDetails ¶
func GetBackupsDetails(folder storage.Folder, backups []internal.BackupTime) ([]BackupDetail, error)
func (*BackupDetail) PrintableFields ¶
func (bd *BackupDetail) PrintableFields() []printlist.TableField
type BackupFileOptions ¶
type BackupFileOptions struct {
// contains filtered or unexported fields
}
type BackupFileUnwrapper ¶
type BackupFileUnwrapper struct {
// contains filtered or unexported fields
}
type BackupHandler ¶
type BackupHandler struct {
CurBackupInfo CurBackupInfo
Arguments BackupArguments
Workers BackupWorkers
PgInfo BackupPgInfo
// contains filtered or unexported fields
}
func NewBackupHandler ¶
func NewBackupHandler(arguments BackupArguments) (bh *BackupHandler, err error)
func (*BackupHandler) CheckArchiveCommand ¶
func (bh *BackupHandler) CheckArchiveCommand(ctx context.Context) error
func (*BackupHandler) HandleBackupPush ¶
func (bh *BackupHandler) HandleBackupPush(ctx context.Context)
func (*BackupHandler) SetComposerInitFunc ¶
func (bh *BackupHandler) SetComposerInitFunc(initFunc func(handler *BackupHandler) error)
type BackupObject ¶
type BackupObject struct {
storage.Object
BackupName string
// contains filtered or unexported fields
}
func (BackupObject) GetBackupName ¶
func (o BackupObject) GetBackupName() string
func (BackupObject) GetBackupTime ¶
func (o BackupObject) GetBackupTime() time.Time
func (BackupObject) GetBaseBackupName ¶
func (o BackupObject) GetBaseBackupName() string
func (BackupObject) GetIncrementFromName ¶
func (o BackupObject) GetIncrementFromName() string
func (BackupObject) GetStorage ¶
func (o BackupObject) GetStorage() string
func (BackupObject) IsFullBackup ¶
func (o BackupObject) IsFullBackup() bool
type BackupPgInfo ¶
type BackupSearchParams ¶
type BackupSentinelDto ¶
type BackupSentinelDto struct {
BackupStartLSN *LSN `json:"LSN"`
IncrementFromLSN *LSN `json:"DeltaLSN,omitempty"`
IncrementFrom *string `json:"DeltaFrom,omitempty"`
IncrementFullName *string `json:"DeltaFullName,omitempty"`
IncrementCount *int `json:"DeltaCount,omitempty"`
PgVersion int `json:"PgVersion"`
BackupFinishLSN *LSN `json:"FinishLSN"`
SystemIdentifier *uint64 `json:"SystemIdentifier,omitempty"`
UncompressedSize int64 `json:"UncompressedSize"`
CompressedSize int64 `json:"CompressedSize"`
DataCatalogSize int64 `json:"DataCatalogSize,omitempty"`
TablespaceSpec *TablespaceSpec `json:"Spec,omitempty"`
UserData interface{} `json:"UserData,omitempty"`
FilesMetadataDisabled bool `json:"FilesMetadataDisabled,omitempty"`
BackupStartChkpNum *uint32 `json:"ChkpNum"`
IncrementFromChkpNum *uint32 `json:"DeltaChkpNum,omitempty"`
}
func NewBackupSentinelDto ¶
func NewBackupSentinelDto(bh *BackupHandler, tbsSpec *TablespaceSpec) BackupSentinelDto
func (*BackupSentinelDto) IsIncremental ¶
func (dto *BackupSentinelDto) IsIncremental() (isIncremental bool)
func (*BackupSentinelDto) UnmarshalJSON ¶
func (dto *BackupSentinelDto) UnmarshalJSON(data []byte) error
type BackupSentinelDtoV2 ¶
type BackupSentinelDtoV2 struct {
BackupSentinelDto
Version int `json:"Version"`
StartTime time.Time `json:"StartTime"`
FinishTime time.Time `json:"FinishTime"`
DatetimeFormat string `json:"DateFmt"`
Hostname string `json:"Hostname"`
DataDir string `json:"DataDir"`
IsPermanent bool `json:"IsPermanent"`
}
func NewBackupSentinelDtoV2 ¶
func NewBackupSentinelDtoV2(sentinel BackupSentinelDto, meta ExtendedMetadataDto) BackupSentinelDtoV2
type BackupTerminator ¶
type BackupTerminator struct {
// contains filtered or unexported fields
}
func NewBackupTerminator ¶
func NewBackupTerminator(queryRunner *PgQueryRunner, pgVersion int, pgDataDir string) *BackupTerminator
func (*BackupTerminator) TerminateBackup ¶
func (t *BackupTerminator) TerminateBackup()
type BackupTimeSlicesOrder ¶
type BackupTimeSlicesOrder int
const ( ByCreationTime BackupTimeSlicesOrder = iota ByModificationTime )
type BackupVerifyResult ¶ added in v0.15.1
type BackupVerifyResult struct {
BackupName string `json:"backup_name"`
Tier BackupVerifyTier `json:"tier"`
Pass bool `json:"pass"`
SentinelExists bool `json:"sentinel_exists"`
SentinelError string `json:"sentinel_error,omitempty"`
FilesMetadataExists bool `json:"files_metadata_exists"`
MissingParts []string `json:"missing_parts,omitempty"`
DeployMetadata interface{} `json:"deploy_metadata"`
ChecksumCoverage ChecksumCoverage `json:"checksum_coverage"`
WALCheckAvailable bool `json:"wal_check_available"`
WALCheckDetails string `json:"wal_check_details,omitempty"`
WALGaps []string `json:"wal_gaps,omitempty"`
SamplePercent int `json:"sample_percent,omitempty"`
ActualSamplePct float64 `json:"actual_sample_pct,omitempty"`
SampledParts int `json:"sampled_parts,omitempty"`
TotalParts int `json:"total_parts,omitempty"`
FileResults []VerifyFileResult `json:"file_results,omitempty"`
Tier2Pass *bool `json:"tier2_pass,omitempty"`
Elapsed string `json:"elapsed"`
Error string `json:"error,omitempty"`
}
type BackupVerifyTier ¶ added in v0.15.1
type BackupVerifyTier int
const ( Tier1 BackupVerifyTier = 1 Tier2 BackupVerifyTier = 2 )
func (BackupVerifyTier) MarshalText ¶ added in v0.15.1
func (t BackupVerifyTier) MarshalText() ([]byte, error)
type BackupWorkers ¶
type BackupWorkers struct {
Bundle *Bundle
QueryRunner *PgQueryRunner
}
type BgUploader ¶
type BgUploader struct {
// contains filtered or unexported fields
}
BgUploader represents the state of concurrent WAL upload
func NewBgUploader ¶
func NewBgUploader(ctx context.Context, walFilePath string, maxParallelWorkers int32, maxNumUploaded int32, uploader *WalUploader, preventWalOverwrite bool, readyRename bool) *BgUploader
NewBgUploader creates a new BgUploader which looks for WAL files adjacent to walFilePath. maxParallelWorkers and maxNumUploaded limits maximum concurrency and total work done by this BgUploader respectively.
func (*BgUploader) Start ¶
func (b *BgUploader) Start()
Start up checking what's inside archive_status
func (*BgUploader) Stop ¶
func (b *BgUploader) Stop() error
Stop pipeline. Stop can be safely called concurrently and repeatedly.
type Bundle ¶
type Bundle struct {
internal.Bundle
Timeline uint32
Replica bool
IncrementFromLsn *LSN
IncrementFromFiles internal.BackupFileList
IncrementFromName string
DeltaMap PagedFileDeltaMap
TablespaceSpec TablespaceSpec
DataCatalogSize atomic.Int64
IncrementFromChkpNum *uint32
// contains filtered or unexported fields
}
func (*Bundle) DownloadDeltaMap ¶
func (bundle *Bundle) DownloadDeltaMap(reader internal.StorageFolderReader, backupStartLSN LSN) error
func (*Bundle) FinishTarComposer ¶
func (bundle *Bundle) FinishTarComposer() (internal.TarFileSets, error)
func (*Bundle) HandleWalkedFSObject ¶
func (*Bundle) NewTarBall ¶
func (*Bundle) SetupComposer ¶
func (bundle *Bundle) SetupComposer(composerMaker TarBallComposerMaker) (err error)
func (*Bundle) StartBackup ¶
func (*Bundle) UploadPgControl ¶
type BytesPerWalSegmentError ¶
type BytesPerWalSegmentError struct {
// contains filtered or unexported fields
}
func (BytesPerWalSegmentError) Error ¶
func (err BytesPerWalSegmentError) Error() string
type CantDiscardWalDataError ¶
type CantDiscardWalDataError struct {
// contains filtered or unexported fields
}
func (CantDiscardWalDataError) Error ¶
func (err CantDiscardWalDataError) Error() string
type CantOverwriteWalFileError ¶
type CantOverwriteWalFileError struct {
// contains filtered or unexported fields
}
func (CantOverwriteWalFileError) Error ¶
func (err CantOverwriteWalFileError) Error() string
type CatchupCommandDto ¶
type CatchupDeltaBackupConfigurator ¶
type CatchupDeltaBackupConfigurator struct {
// contains filtered or unexported fields
}
func NewCatchupDeltaBackupConfigurator ¶
func NewCatchupDeltaBackupConfigurator(fakePreviousBackupSentinelDto BackupSentinelDto) CatchupDeltaBackupConfigurator
func (CatchupDeltaBackupConfigurator) Configure ¶
func (c CatchupDeltaBackupConfigurator) Configure(storage.Folder, bool) (prevBackupInfo PrevBackupInfo, incrementCount int, err error)
type CatchupFileUnwrapper ¶
type CatchupFileUnwrapper struct {
BackupFileUnwrapper
}
func (*CatchupFileUnwrapper) UnwrapExistingFile ¶
func (u *CatchupFileUnwrapper) UnwrapExistingFile(reader io.Reader, header *tar.Header, file *os.File, fsync bool) (*FileUnwrapResult, error)
func (*CatchupFileUnwrapper) UnwrapNewFile ¶
func (u *CatchupFileUnwrapper) UnwrapNewFile(reader io.Reader, header *tar.Header, file *os.File, fsync bool) (*FileUnwrapResult, error)
type CheckMessageHandler ¶
type CheckMessageHandler struct {
// contains filtered or unexported fields
}
type ChecksumCoverage ¶ added in v0.15.1
type Cleaner ¶
Cleaner interface serves to separate file system logic from prefetch clean logic to make it testable
type CopyTarBallComposer ¶
type CopyTarBallComposer struct {
// contains filtered or unexported fields
}
func NewCopyTarBallComposer ¶
func NewCopyTarBallComposer( tarBallQueue *internal.TarBallQueue, tarBallFilePacker *TarBallFilePackerImpl, files *internal.RegularBundleFiles, crypter crypto.Crypter, prevBackup Backup, newBackupName string, tarUnchangedFilesCount map[string]int, prevFileTar map[string]string, prevTarFileSets internal.TarFileSets, ) (*CopyTarBallComposer, error)
func (*CopyTarBallComposer) AddFile ¶
func (c *CopyTarBallComposer) AddFile(info *internal.ComposeFileInfo)
func (*CopyTarBallComposer) FinishComposing ¶
func (c *CopyTarBallComposer) FinishComposing() (internal.TarFileSets, error)
func (*CopyTarBallComposer) GetFiles ¶
func (c *CopyTarBallComposer) GetFiles() internal.BundleFiles
type CopyTarBallComposerMaker ¶
type CopyTarBallComposerMaker struct {
// contains filtered or unexported fields
}
func NewCopyTarBallComposerMaker ¶
func NewCopyTarBallComposerMaker(previousBackup Backup, newBackupName string, filePackerOptions TarBallFilePackerOptions) *CopyTarBallComposerMaker
func (*CopyTarBallComposerMaker) Make ¶
func (maker *CopyTarBallComposerMaker) Make(bundle *Bundle) (internal.TarBallComposer, error)
type CurBackupInfo ¶
type DaemonOptions ¶
type DaemonOptions struct {
SocketPath string
}
type DaemonPrefetcher ¶
type DaemonPrefetcher struct {
}
func (DaemonPrefetcher) Prefetch ¶
func (p DaemonPrefetcher) Prefetch(reader internal.StorageFolderReader, walFileName string, location string)
type DatabaseObjectsInfo ¶
type DatabaseObjectsInfo struct {
Oid uint32 `json:"oid"`
Tables map[string]TableInfo `json:"tables_new,omitempty"`
}
func NewDatabaseObjectsInfo ¶
func NewDatabaseObjectsInfo(oid uint32) *DatabaseObjectsInfo
type DatabasesByNames ¶
type DatabasesByNames map[string]DatabaseObjectsInfo
func (DatabasesByNames) GetSystemTables ¶
func (meta DatabasesByNames) GetSystemTables() RestoreDesc
func (DatabasesByNames) Resolve ¶
func (meta DatabasesByNames) Resolve(key string) (uint32, uint32, error)
func (DatabasesByNames) ResolveRegexp ¶
func (meta DatabasesByNames) ResolveRegexp(key string) (map[uint32][]uint32, error)
type DecoderReader ¶
type DefaultFileUnwrapper ¶
type DefaultFileUnwrapper struct {
BackupFileUnwrapper
}
func (*DefaultFileUnwrapper) UnwrapExistingFile ¶
func (u *DefaultFileUnwrapper) UnwrapExistingFile(reader io.Reader, header *tar.Header, file *os.File, fsync bool) (*FileUnwrapResult, error)
func (*DefaultFileUnwrapper) UnwrapNewFile ¶
func (u *DefaultFileUnwrapper) UnwrapNewFile(reader io.Reader, header *tar.Header, file *os.File, fsync bool) (*FileUnwrapResult, error)
type DefaultRestoreDescMaker ¶
type DefaultRestoreDescMaker struct{}
func (DefaultRestoreDescMaker) Make ¶
func (m DefaultRestoreDescMaker) Make(restoreParameters []string, names DatabasesByNames) (RestoreDesc, error)
type DeleteHandler ¶
type DeleteHandler struct {
internal.DeleteHandler
}
func NewDeleteHandler ¶
func NewDeleteHandler(folder storage.Folder, permanentBackups, permanentWals map[PermanentObject]bool, useSentinelTime bool, ) (*DeleteHandler, error)
func (*DeleteHandler) HandleDeleteGarbage ¶
func (dh *DeleteHandler) HandleDeleteGarbage(args []string, confirm bool, deleteWithoutBackups bool) error
type DeltaBackupConfigurator ¶
type DeltaFile ¶
type DeltaFile struct {
Locations []walparser.BlockLocation
WalParser *walparser.WalParser
}
type DeltaFileChanWriter ¶
type DeltaFileChanWriter struct {
DeltaFile *DeltaFile
BlockLocationConsumer chan walparser.BlockLocation
}
func NewDeltaFileChanWriter ¶
func NewDeltaFileChanWriter(deltaFile *DeltaFile) *DeltaFileChanWriter
func (*DeltaFileChanWriter) Consume ¶
func (writer *DeltaFileChanWriter) Consume(waitGroup *sync.WaitGroup)
type DeltaFileManager ¶
type DeltaFileManager struct {
PartFiles *internal.LazyCache[string, *WalPartFile]
DeltaFileWriters *internal.LazyCache[string, *DeltaFileChanWriter]
CanceledDeltaFiles map[string]bool
// contains filtered or unexported fields
}
func NewDeltaFileManager ¶
func NewDeltaFileManager(dataFolder fsutil.DataFolder) *DeltaFileManager
func (*DeltaFileManager) CancelRecording ¶
func (manager *DeltaFileManager) CancelRecording(walFilename string)
func (*DeltaFileManager) CombinePartFile ¶
func (manager *DeltaFileManager) CombinePartFile(deltaFilename string, partFile *WalPartFile) error
func (*DeltaFileManager) FlushDeltaFiles ¶
func (*DeltaFileManager) FlushFiles ¶
func (manager *DeltaFileManager) FlushFiles(ctx context.Context, uploader internal.Uploader)
func (*DeltaFileManager) FlushPartFiles ¶
func (manager *DeltaFileManager) FlushPartFiles() (completedPartFiles map[string]bool)
func (*DeltaFileManager) GetBlockLocationConsumer ¶
func (manager *DeltaFileManager) GetBlockLocationConsumer(deltaFilename string) (chan walparser.BlockLocation, error)
func (*DeltaFileManager) GetPartFile ¶
func (manager *DeltaFileManager) GetPartFile(deltaFilename string) (*WalPartFile, error)
type DeltaFileWriterNotFoundError ¶
type DeltaFileWriterNotFoundError struct {
// contains filtered or unexported fields
}
func (DeltaFileWriterNotFoundError) Error ¶
func (err DeltaFileWriterNotFoundError) Error() string
type DeployMetadata ¶ added in v0.15.1
type DeployMetadata struct {
GitCommit string `json:"git_commit,omitempty"`
GitBranch string `json:"git_branch,omitempty"`
DeployID string `json:"deploy_id,omitempty"`
}
func CollectDeployMetadata ¶ added in v0.15.1
func CollectDeployMetadata(gitCommit, gitBranch, deployID string) DeployMetadata
func ExtractDeployMetadata ¶ added in v0.15.1
func ExtractDeployMetadata(userData interface{}) (DeployMetadata, bool)
type DeprecatedSentinelFields ¶
type DeprecatedSentinelFields struct {
FilesMetadataDto
DeltaFromLSN *LSN `json:"DeltaFromLSN,omitempty"`
}
type DirDatabaseTarBallComposerMaker ¶
type DirDatabaseTarBallComposerMaker struct {
// contains filtered or unexported fields
}
func NewDirDatabaseTarBallComposerMaker ¶
func NewDirDatabaseTarBallComposerMaker(files internal.BundleFiles, filePackerOptions TarBallFilePackerOptions, tarFileSets internal.TarFileSets) *DirDatabaseTarBallComposerMaker
func (DirDatabaseTarBallComposerMaker) Make ¶
func (m DirDatabaseTarBallComposerMaker) Make(bundle *Bundle) (internal.TarBallComposer, error)
type ExtendedMetadataDto ¶
type ExtendedMetadataDto struct {
StartTime time.Time `json:"start_time"`
FinishTime time.Time `json:"finish_time"`
DatetimeFormat string `json:"date_fmt"`
Hostname string `json:"hostname"`
DataDir string `json:"data_dir"`
PgVersion int `json:"pg_version"`
StartLsn LSN `json:"start_lsn"`
FinishLsn LSN `json:"finish_lsn"`
IsPermanent bool `json:"is_permanent"`
SystemIdentifier *uint64 `json:"system_identifier"`
UncompressedSize int64 `json:"uncompressed_size"`
CompressedSize int64 `json:"compressed_size"`
UserData interface{} `json:"user_data,omitempty"`
}
func NewExtendedMetadataDto ¶
func NewExtendedMetadataDto(isPermanent bool, dataDir string, startTime time.Time, sentinelDto BackupSentinelDto) (meta ExtendedMetadataDto)
type ExtractProvider ¶
type ExtractProvider interface {
Get(backup Backup, filesToUnwrap map[string]bool, skipRedundantTars bool, dbDataDir string, createNewIncrementalFiles bool) (
interpreter IncrementalTarInterpreter,
concurrentTarsToExtract []internal.ReaderMaker,
sequentialTarsToExtract []internal.ReaderMaker,
err error)
}
type ExtractProviderDBSpec ¶
type ExtractProviderDBSpec struct {
RestoreParameters []string
// contains filtered or unexported fields
}
func NewExtractProviderDBSpec ¶
func NewExtractProviderDBSpec(restoreParameters []string) *ExtractProviderDBSpec
func (ExtractProviderDBSpec) Get ¶
func (p ExtractProviderDBSpec) Get( backup Backup, filesToUnwrap map[string]bool, skipRedundantTars bool, dbDataDir string, createNewIncrementalFiles bool, ) (IncrementalTarInterpreter, []internal.ReaderMaker, []internal.ReaderMaker, error)
type ExtractProviderImpl ¶
type ExtractProviderImpl struct {
FilesToExtractProviderImpl
}
func (ExtractProviderImpl) Get ¶
func (t ExtractProviderImpl) Get( backup Backup, filesToUnwrap map[string]bool, skipRedundantTars bool, dbDataDir string, createNewIncrementalFiles bool, ) (IncrementalTarInterpreter, []internal.ReaderMaker, []internal.ReaderMaker, error)
type FetchConfig ¶
type FetchConfig struct {
// contains filtered or unexported fields
}
func NewFetchConfig ¶
func NewFetchConfig(dbDataDirectory string, backup Backup, rootFolder storage.Folder, spec *TablespaceSpec, filesToUnwrap map[string]bool, skipRedundantTars bool, manager ExtractProvider) *FetchConfig
func (*FetchConfig) SkipRedundantFiles ¶
func (fc *FetchConfig) SkipRedundantFiles(unwrapResult *UnwrapResult)
type FileTarInterpreter ¶
type FileTarInterpreter struct {
DBDataDirectory string
Sentinel BackupSentinelDto
FilesMetadata FilesMetadataDto
FilesToUnwrap map[string]bool
UnwrapResult *UnwrapResult
// contains filtered or unexported fields
}
func NewFileTarInterpreter ¶
func NewFileTarInterpreter( dbDataDirectory string, sentinel BackupSentinelDto, filesMetadata FilesMetadataDto, filesToUnwrap map[string]bool, createNewIncrementalFiles bool, ) *FileTarInterpreter
func (*FileTarInterpreter) AddFileUnwrapResult ¶
func (tarInterpreter *FileTarInterpreter) AddFileUnwrapResult(result *FileUnwrapResult, fileName string)
func (*FileTarInterpreter) GetUnwrapResult ¶
func (tarInterpreter *FileTarInterpreter) GetUnwrapResult() *UnwrapResult
type FileUnwrapResult ¶
type FileUnwrapResult struct {
FileUnwrapResultType
// contains filtered or unexported fields
}
func NewCompletedResult ¶
func NewCompletedResult() *FileUnwrapResult
func NewCreatedFromIncrementResult ¶
func NewCreatedFromIncrementResult(missingBlockCount int64) *FileUnwrapResult
func NewSkippedResult ¶
func NewSkippedResult() *FileUnwrapResult
func NewWroteIncrementBlocksResult ¶
func NewWroteIncrementBlocksResult(restoredBlockCount int64) *FileUnwrapResult
type FileUnwrapResultType ¶
type FileUnwrapResultType int
const ( Completed FileUnwrapResultType = iota + 1 CreatedFromIncrement WroteIncrementBlocks Skipped )
type FileUnwrapperType ¶
type FileUnwrapperType int
const ( DefaultBackupFileUnwrapper FileUnwrapperType = iota + 1 CatchupBackupFileUnwrapper )
type FilesMetadataDto ¶
type FilesMetadataDto struct {
Files internal.BackupFileList `json:"Files,omitempty"`
TarFileSets map[string][]string `json:"TarFileSets,omitempty"`
DatabasesByNames DatabasesByNames `json:"DatabasesByNames,omitempty"`
}
func NewFilesMetadataDto ¶
func NewFilesMetadataDto(files internal.BackupFileList, tarFileSets internal.TarFileSets) FilesMetadataDto
type FilesToExtractProvider ¶
type FilesToExtractProviderImpl ¶
type FilesToExtractProviderImpl struct {
}
func (FilesToExtractProviderImpl) Get ¶
func (t FilesToExtractProviderImpl) Get(backup Backup, filesToUnwrap map[string]bool, skipRedundantTars bool) ( concurrentTarsToExtract []internal.ReaderMaker, sequentialTarsToExtract []internal.ReaderMaker, err error)
type GenericMetaFetcher ¶
type GenericMetaFetcher struct{}
func NewGenericMetaFetcher ¶
func NewGenericMetaFetcher() GenericMetaFetcher
func (GenericMetaFetcher) Fetch ¶
func (mf GenericMetaFetcher) Fetch(backupName string, backupFolder storage.Folder) (internal.GenericMetadata, error)
func (GenericMetaFetcher) FetchFromStorage ¶
func (mf GenericMetaFetcher) FetchFromStorage( backupName string, backupFolder storage.Folder, storage string, ) (internal.GenericMetadata, error)
type GenericMetaInteractor ¶
type GenericMetaInteractor struct {
GenericMetaFetcher
GenericMetaSetter
}
func NewGenericMetaInteractor ¶
func NewGenericMetaInteractor() GenericMetaInteractor
type GenericMetaSetter ¶
type GenericMetaSetter struct{}
func NewGenericMetaSetter ¶
func NewGenericMetaSetter() GenericMetaSetter
func (GenericMetaSetter) SetIsPermanent ¶
func (GenericMetaSetter) SetUserData ¶
func (ms GenericMetaSetter) SetUserData(backupName string, backupFolder storage.Folder, userData interface{}) error
type HistoryFileNotFoundError ¶
type HistoryFileNotFoundError struct {
// contains filtered or unexported fields
}
func (HistoryFileNotFoundError) Error ¶
func (err HistoryFileNotFoundError) Error() string
type IBackupFileUnwrapper ¶
type IBackupFileUnwrapper interface {
UnwrapNewFile(reader io.Reader, header *tar.Header, file *os.File, fsync bool) (*FileUnwrapResult, error)
UnwrapExistingFile(reader io.Reader, header *tar.Header, file *os.File, fsync bool) (*FileUnwrapResult, error)
}
func NewFileUnwrapper ¶
func NewFileUnwrapper(unwrapperType FileUnwrapperType, options *BackupFileOptions) IBackupFileUnwrapper
type IncorrectBackupNameError ¶
type IncorrectBackupNameError struct {
// contains filtered or unexported fields
}
func (IncorrectBackupNameError) Error ¶
func (err IncorrectBackupNameError) Error() string
type IncorrectLogSegNoError ¶
type IncorrectLogSegNoError struct {
// contains filtered or unexported fields
}
func (IncorrectLogSegNoError) Error ¶
func (err IncorrectLogSegNoError) Error() string
type IncrementDetailsFetcher ¶
type IncrementDetailsFetcher struct {
// contains filtered or unexported fields
}
func NewIncrementDetailsFetcher ¶
func NewIncrementDetailsFetcher(backup Backup) *IncrementDetailsFetcher
func (*IncrementDetailsFetcher) Fetch ¶
func (idf *IncrementDetailsFetcher) Fetch() (bool, internal.IncrementDetails, error)
type IncrementalPageReader ¶
type IncrementalPageReader struct {
PagedFile ioextensions.ReadSeekCloser
FileSize int64
Lsn LSN
Next []byte
Blocks []uint32
}
func (*IncrementalPageReader) AdvanceFileReader ¶
func (pageReader *IncrementalPageReader) AdvanceFileReader() error
func (*IncrementalPageReader) Close ¶
func (pageReader *IncrementalPageReader) Close() error
func (*IncrementalPageReader) DeltaBitmapInitialize ¶
func (pageReader *IncrementalPageReader) DeltaBitmapInitialize(deltaBitmap *roaring.Bitmap)
func (*IncrementalPageReader) DrainMoreData ¶
func (pageReader *IncrementalPageReader) DrainMoreData() (succeed bool, err error)
func (*IncrementalPageReader) FullScanInitialize ¶
func (pageReader *IncrementalPageReader) FullScanInitialize() error
func (*IncrementalPageReader) Read ¶
func (pageReader *IncrementalPageReader) Read(p []byte) (n int, err error)
func (*IncrementalPageReader) SelectNewValidPage ¶
func (pageReader *IncrementalPageReader) SelectNewValidPage(pageBytes []byte, blockNo uint32) (valid bool)
func (*IncrementalPageReader) WriteDiffMapToHeader ¶
func (pageReader *IncrementalPageReader) WriteDiffMapToHeader(headerWriter io.Writer)
type IncrementalTarInterpreter ¶
type IncrementalTarInterpreter interface {
internal.TarInterpreter
GetUnwrapResult() *UnwrapResult
}
type IntegrityCheckDetails ¶
type IntegrityCheckDetails []*IntegrityScanSegmentSequence
func (IntegrityCheckDetails) NewPlainTextReader ¶
func (sequences IntegrityCheckDetails) NewPlainTextReader() (io.Reader, error)
type IntegrityCheckRunner ¶
type IntegrityCheckRunner struct {
// contains filtered or unexported fields
}
func NewIntegrityCheckRunner ¶
func NewIntegrityCheckRunner( rootFolder storage.Folder, walFolderFilenames []string, currentWalSegment WalSegmentDescription, backupSearchParams BackupSearchParams, ) (IntegrityCheckRunner, error)
func (IntegrityCheckRunner) Run ¶
func (check IntegrityCheckRunner) Run() (WalVerifyCheckResult, error)
func (IntegrityCheckRunner) Type ¶
func (check IntegrityCheckRunner) Type() WalVerifyCheckType
type IntegrityScanSegmentSequence ¶
type IntegrityScanSegmentSequence struct {
TimelineID uint32 `json:"timeline_id"`
StartSegment string `json:"start_segment"`
EndSegment string `json:"end_segment"`
SegmentsCount int `json:"segments_count"`
Status ScannedSegmentStatus `json:"status"`
}
type InvalidIncrementFileHeaderError ¶
type InvalidIncrementFileHeaderError struct {
// contains filtered or unexported fields
}
func (InvalidIncrementFileHeaderError) Error ¶
func (err InvalidIncrementFileHeaderError) Error() string
type InvalidWalFileMagicError ¶
type InvalidWalFileMagicError struct {
// contains filtered or unexported fields
}
func (InvalidWalFileMagicError) Error ¶
func (err InvalidWalFileMagicError) Error() string
type LSN ¶
type LSN uint64
func FindLastCommonPoint ¶
func FindLastCommonPoint(target, source []*TimelineHistoryRecord) (LSN, uint32, error)
type NilWalParserError ¶
type NilWalParserError struct {
// contains filtered or unexported fields
}
func (NilWalParserError) Error ¶
func (err NilWalParserError) Error() string
type NoBitmapFoundError ¶
type NoBitmapFoundError struct {
// contains filtered or unexported fields
}
func (NoBitmapFoundError) Error ¶
func (err NoBitmapFoundError) Error() string
type NoCorrectBackupFoundError ¶
type NoCorrectBackupFoundError struct {
// contains filtered or unexported fields
}
func (NoCorrectBackupFoundError) Error ¶
func (err NoCorrectBackupFoundError) Error() string
type NoPostgresVersionError ¶
type NoPostgresVersionError struct {
// contains filtered or unexported fields
}
func NewNoPostgresVersionError ¶
func NewNoPostgresVersionError() NoPostgresVersionError
func (NoPostgresVersionError) Error ¶
func (err NoPostgresVersionError) Error() string
type NonEmptyDBDataDirectoryError ¶
type NonEmptyDBDataDirectoryError struct {
// contains filtered or unexported fields
}
func NewNonEmptyDBDataDirectoryError ¶
func NewNonEmptyDBDataDirectoryError(dbDataDirectory string) NonEmptyDBDataDirectoryError
func (NonEmptyDBDataDirectoryError) Error ¶
func (err NonEmptyDBDataDirectoryError) Error() string
type NopPrefetcher ¶
type NopPrefetcher struct {
}
func (NopPrefetcher) Prefetch ¶
func (p NopPrefetcher) Prefetch(reader internal.StorageFolderReader, walFileName string, location string)
type NotWalFilenameError ¶
type NotWalFilenameError struct {
// contains filtered or unexported fields
}
func (NotWalFilenameError) Error ¶
func (err NotWalFilenameError) Error() string
type PageHeader ¶
type PageHeader struct {
// contains filtered or unexported fields
}
type PagedFileDeltaMap ¶
type PagedFileDeltaMap map[walparser.RelFileNode]*roaring.Bitmap
func NewPagedFileDeltaMap ¶
func NewPagedFileDeltaMap() PagedFileDeltaMap
func (*PagedFileDeltaMap) AddLocationToDelta ¶
func (deltaMap *PagedFileDeltaMap) AddLocationToDelta(location walparser.BlockLocation)
func (*PagedFileDeltaMap) AddLocationsToDelta ¶
func (deltaMap *PagedFileDeltaMap) AddLocationsToDelta(locations []walparser.BlockLocation)
func (*PagedFileDeltaMap) GetDeltaBitmapFor ¶
func (deltaMap *PagedFileDeltaMap) GetDeltaBitmapFor(filePath string) (*roaring.Bitmap, error)
type PermanentObject ¶
type PgAliveWatcher ¶
type PgAliveWatcher struct {
Err <-chan error
}
func NewPgWatcher ¶
func NewPgWatcher(queryRunner *PgQueryRunner, aliveCheckInterval time.Duration) *PgAliveWatcher
type PgChecksummablePage ¶
type PgChecksummablePage [MaxDatabasePageSize / int64(NSums*sizeofInt32)][NSums]uint32
PgChecksummablePage represents single database page divided by NSums blocks for checksum calculation
type PgControlData ¶
type PgControlData struct {
SystemIdentifier uint64 // SystemIdentifier represents system ID of PG cluster (f.e. [0-8] bytes in pg_control)
CurrentTimeline uint32 // CurrentTimeline represents current timeline of PG cluster (f.e. [48-52] bytes in pg_control v. 1100+)
Checkpoint LSN //
}
PgControlData represents data contained in pg_control file
func ExtractPgControl ¶
func ExtractPgControl(folder string) (*PgControlData, error)
ExtractPgControl extract pg_control data of cluster by storage
func (*PgControlData) GetCurrentTimeline ¶
func (data *PgControlData) GetCurrentTimeline() uint32
func (*PgControlData) GetSystemIdentifier ¶
func (data *PgControlData) GetSystemIdentifier() uint64
type PgControlNotFoundError ¶
type PgControlNotFoundError struct {
// contains filtered or unexported fields
}
func (PgControlNotFoundError) Error ¶
func (err PgControlNotFoundError) Error() string
type PgDatabaseInfo ¶
type PgDatabasePage ¶
type PgDatabasePage [MaxDatabasePageSize]byte
PgDatabasePage represents single database page
type PgQueryRunner ¶
type PgQueryRunner struct {
Connection *pgx.Conn
Version int
SystemIdentifier *uint64
Mu sync.Mutex
// contains filtered or unexported fields
}
func NewPgQueryRunner ¶
func (*PgQueryRunner) BuildGetDatabasesQuery ¶
func (queryRunner *PgQueryRunner) BuildGetDatabasesQuery() (string, error)
func (*PgQueryRunner) BuildStartBackup ¶
func (queryRunner *PgQueryRunner) BuildStartBackup() (string, error)
func (*PgQueryRunner) BuildStatisticsQuery ¶
func (queryRunner *PgQueryRunner) BuildStatisticsQuery() (string, error)
func (*PgQueryRunner) BuildStopBackup ¶
func (queryRunner *PgQueryRunner) BuildStopBackup() (string, error)
func (*PgQueryRunner) ForEachDatabase ¶
func (queryRunner *PgQueryRunner) ForEachDatabase(ctx context.Context, function func(runner *PgQueryRunner, db PgDatabaseInfo) error) error
func (*PgQueryRunner) GetArchiveCommand ¶
func (queryRunner *PgQueryRunner) GetArchiveCommand(ctx context.Context) (string, error)
func (*PgQueryRunner) GetArchiveMode ¶
func (queryRunner *PgQueryRunner) GetArchiveMode(ctx context.Context) (string, error)
func (*PgQueryRunner) GetDataChecksums ¶
func (queryRunner *PgQueryRunner) GetDataChecksums(ctx context.Context) (string, error)
func (*PgQueryRunner) GetDataDir ¶
func (queryRunner *PgQueryRunner) GetDataDir(ctx context.Context) (dataDir string, err error)
func (*PgQueryRunner) GetDatabaseInfos ¶
func (queryRunner *PgQueryRunner) GetDatabaseInfos(ctx context.Context) ([]PgDatabaseInfo, error)
func (*PgQueryRunner) GetLockingPID ¶
func (queryRunner *PgQueryRunner) GetLockingPID(ctx context.Context) (int, error)
func (*PgQueryRunner) GetParameter ¶
func (*PgQueryRunner) GetPhysicalSlotInfo ¶
func (queryRunner *PgQueryRunner) GetPhysicalSlotInfo(ctx context.Context, slotName string) (PhysicalSlot, error)
func (*PgQueryRunner) GetWalSegmentBytes ¶
func (queryRunner *PgQueryRunner) GetWalSegmentBytes(ctx context.Context) (segBlocks uint64, err error)
func (*PgQueryRunner) IsStandby ¶
func (queryRunner *PgQueryRunner) IsStandby(ctx context.Context) (bool, error)
func (*PgQueryRunner) IsTablespaceMapExists ¶
func (queryRunner *PgQueryRunner) IsTablespaceMapExists() bool
func (*PgQueryRunner) Ping ¶
func (queryRunner *PgQueryRunner) Ping() error
func (*PgQueryRunner) ReadTimeline ¶
func (queryRunner *PgQueryRunner) ReadTimeline(ctx context.Context) (timeline uint32, err error)
func (*PgQueryRunner) StartBackup ¶
func (*PgQueryRunner) StopBackup ¶
func (*PgQueryRunner) TryGetLock ¶
func (queryRunner *PgQueryRunner) TryGetLock(ctx context.Context) (err error)
type PgRelationStat ¶
type PgRelationStat struct {
// contains filtered or unexported fields
}
type PhysicalSlot ¶
The PhysicalSlot represents a Physical Replication Slot.
func NewPhysicalSlot ¶
func NewPhysicalSlot(name string, exists bool, active bool, restartLSN string) (slot PhysicalSlot, err error)
NewPhysicalSlot is a helper function to declare a new PhysicalSlot object and set vaues from the parsed arguments
type PrevBackupInfo ¶
type PrevBackupInfo struct {
// contains filtered or unexported fields
}
func NewPrevBackupInfo ¶
func NewPrevBackupInfo(name string, sentinel BackupSentinelDto, filesMeta FilesMetadataDto) PrevBackupInfo
type ProcessMessageResult ¶
type ProcessMessageResult int
The ProcessMessageResult is an enum representing possible results from the methods processing the messages as received from Postgres into the wal segment.
const ( ProcessMessageOK ProcessMessageResult = iota ProcessMessageUnknown ProcessMessageCopyDone ProcessMessageReplyRequested ProcessMessageSegmentGap ProcessMessageMismatch )
These are the multiple results that the methods can return
type QueryRunner ¶
type RatedComposeFileInfo ¶
type RatedComposeFileInfo struct {
internal.ComposeFileInfo
// contains filtered or unexported fields
}
type RatingTarBallComposer ¶
type RatingTarBallComposer struct {
// contains filtered or unexported fields
}
func NewRatingTarBallComposer ¶
func NewRatingTarBallComposer( tarSizeThreshold uint64, updateRatingEvaluator internal.ComposeRatingEvaluator, incrementBaseLsn *LSN, deltaMap PagedFileDeltaMap, tarBallQueue *internal.TarBallQueue, crypter crypto.Crypter, fileStats RelFileStatistics, bundleFiles internal.BundleFiles, packer *TarBallFilePackerImpl, ) (*RatingTarBallComposer, error)
func (*RatingTarBallComposer) AddFile ¶
func (c *RatingTarBallComposer) AddFile(info *internal.ComposeFileInfo)
func (*RatingTarBallComposer) FinishComposing ¶
func (c *RatingTarBallComposer) FinishComposing() (internal.TarFileSets, error)
func (*RatingTarBallComposer) GetFiles ¶
func (c *RatingTarBallComposer) GetFiles() internal.BundleFiles
type RatingTarBallComposerMaker ¶
type RatingTarBallComposerMaker struct {
// contains filtered or unexported fields
}
func NewRatingTarBallComposerMaker ¶
func NewRatingTarBallComposerMaker(relFileStats RelFileStatistics, filePackerOptions TarBallFilePackerOptions) (*RatingTarBallComposerMaker, error)
func (*RatingTarBallComposerMaker) Make ¶
func (maker *RatingTarBallComposerMaker) Make(bundle *Bundle) (internal.TarBallComposer, error)
type ReachedStopSegmentError ¶
type ReachedStopSegmentError struct {
// contains filtered or unexported fields
}
func (ReachedStopSegmentError) Error ¶
func (err ReachedStopSegmentError) Error() string
type ReadWriterAt ¶
func NewReadWriterAtFrom ¶
func NewReadWriterAtFrom(file *os.File) (ReadWriterAt, error)
type ReadWriterAtFileImpl ¶
func (*ReadWriterAtFileImpl) Size ¶
func (rw *ReadWriterAtFileImpl) Size() int64
type RegexpRestoreDescMaker ¶
type RegexpRestoreDescMaker struct{}
func (RegexpRestoreDescMaker) Make ¶
func (m RegexpRestoreDescMaker) Make(restoreParameters []string, names DatabasesByNames) (RestoreDesc, error)
type RegularDeltaBackupConfigurator ¶
type RegularDeltaBackupConfigurator struct {
// contains filtered or unexported fields
}
func NewRegularDeltaBackupConfigurator ¶
func NewRegularDeltaBackupConfigurator(deltaBaseSelector internal.BackupSelector) RegularDeltaBackupConfigurator
func (RegularDeltaBackupConfigurator) Configure ¶
func (c RegularDeltaBackupConfigurator) Configure( folder storage.Folder, isPermanent bool, ) (prevBackupInfo PrevBackupInfo, incrementCount int, err error)
type RegularPrefetcher ¶
type RegularPrefetcher struct {
}
func (RegularPrefetcher) Prefetch ¶
func (p RegularPrefetcher) Prefetch(_ internal.StorageFolderReader, walFileName string, location string)
type RegularTarBallComposer ¶
type RegularTarBallComposer struct {
// contains filtered or unexported fields
}
func NewRegularTarBallComposer ¶
func NewRegularTarBallComposer( tarBallQueue *internal.TarBallQueue, tarBallFilePacker *TarBallFilePackerImpl, files internal.BundleFiles, tarFileSets internal.TarFileSets, crypter crypto.Crypter, ) *RegularTarBallComposer
func (*RegularTarBallComposer) AddFile ¶
func (c *RegularTarBallComposer) AddFile(info *internal.ComposeFileInfo)
func (*RegularTarBallComposer) FinishComposing ¶
func (c *RegularTarBallComposer) FinishComposing() (internal.TarFileSets, error)
func (*RegularTarBallComposer) GetFiles ¶
func (c *RegularTarBallComposer) GetFiles() internal.BundleFiles
type RegularTarBallComposerMaker ¶
type RegularTarBallComposerMaker struct {
// contains filtered or unexported fields
}
func NewRegularTarBallComposerMaker ¶
func NewRegularTarBallComposerMaker( filePackerOptions TarBallFilePackerOptions, files internal.BundleFiles, tarFileSets internal.TarFileSets, ) *RegularTarBallComposerMaker
func (*RegularTarBallComposerMaker) Make ¶
func (maker *RegularTarBallComposerMaker) Make(bundle *Bundle) (internal.TarBallComposer, error)
type RelFileStatistics ¶
type RelFileStatistics map[walparser.RelFileNode]PgRelationStat
type RestoreDesc ¶
func (RestoreDesc) Add ¶
func (desc RestoreDesc) Add(database, filenode, oid uint32)
func (RestoreDesc) FilterFilesToUnwrap ¶
func (desc RestoreDesc) FilterFilesToUnwrap(filesToUnwrap map[string]bool)
func (RestoreDesc) IsFull ¶
func (desc RestoreDesc) IsFull(database uint32) bool
func (RestoreDesc) IsSkipped ¶
func (desc RestoreDesc) IsSkipped(database, tableFile uint32) bool
type RestoreDescMaker ¶
type RestoreDescMaker interface {
Make(restoreParameters []string, names DatabasesByNames) (RestoreDesc, error)
}
type ScannedSegmentDescription ¶
type ScannedSegmentDescription struct {
WalSegmentDescription
// contains filtered or unexported fields
}
type ScannedSegmentStatus ¶
type ScannedSegmentStatus int
const ( // Surely lost missing segment Lost ScannedSegmentStatus = iota + 1 // Missing but probably still uploading segment ProbablyUploading // Missing but probably delayed segment ProbablyDelayed // Segment exists in storage Found )
func (ScannedSegmentStatus) MarshalText ¶
func (status ScannedSegmentStatus) MarshalText() ([]byte, error)
MarshalText marshals the ScannedSegmentStatus enum as a string
func (ScannedSegmentStatus) String ¶
func (status ScannedSegmentStatus) String() string
type SegmentScanConfig ¶
type SegmentScanConfig struct {
UnlimitedScan bool
// ScanSegmentsLimit is used in case of UnlimitedScan is set to false
ScanSegmentsLimit int
StopOnFirstFoundSegment bool
// MissingSegmentStatus is set to all missing segments encountered during scan
MissingSegmentStatus ScannedSegmentStatus
}
SegmentScanConfig is used to configure the single Scan() call of the WalSegmentScanner
type SkippedFileError ¶
type SkippedFileError struct {
// contains filtered or unexported fields
}
func (SkippedFileError) Error ¶
func (err SkippedFileError) Error() string
type SocketMessageHandler ¶
func NewMessageHandler ¶
func NewMessageHandler( messageType daemon.SocketMessageType, c net.Conn, storage storage.Storage, ) (SocketMessageHandler, error)
type SocketMessageReader ¶
type SocketMessageReader struct {
// contains filtered or unexported fields
}
func NewMessageReader ¶
func NewMessageReader(c net.Conn) *SocketMessageReader
func (SocketMessageReader) Next ¶
func (r SocketMessageReader) Next() (messageType daemon.SocketMessageType, messageBody []byte, err error)
type SocketWriteFailedError ¶
type SocketWriteFailedError struct {
// contains filtered or unexported fields
}
func (SocketWriteFailedError) Error ¶
func (err SocketWriteFailedError) Error() string
type StatBundleFiles ¶
StatBundleFiles contains the bundle files. Additionally, it calculates and stores the updates count for each added file
func (*StatBundleFiles) AddFileDescription ¶
func (files *StatBundleFiles) AddFileDescription(name string, backupFileDescription internal.BackupFileDescription)
func (*StatBundleFiles) AddFileWithCorruptBlocks ¶
func (*StatBundleFiles) AddSkippedFile ¶
func (files *StatBundleFiles) AddSkippedFile(tarHeader *tar.Header, fileInfo os.FileInfo)
func (*StatBundleFiles) GetUnderlyingMap ¶
func (files *StatBundleFiles) GetUnderlyingMap() *sync.Map
type StreamingBaseBackup ¶
type StreamingBaseBackup struct {
TimeLine uint32
StartLSN pglogrepl.LSN
EndLSN pglogrepl.LSN
UncompressedSize int64
Files internal.BackupFileList
// contains filtered or unexported fields
}
func NewStreamingBaseBackup ¶
func (*StreamingBaseBackup) BackupName ¶
func (bb *StreamingBaseBackup) BackupName() string
func (*StreamingBaseBackup) FileName ¶
func (bb *StreamingBaseBackup) FileName() string
func (*StreamingBaseBackup) Finish ¶
func (bb *StreamingBaseBackup) Finish() (err error)
func (*StreamingBaseBackup) GetTablespaceSpec ¶
func (bb *StreamingBaseBackup) GetTablespaceSpec() *TablespaceSpec
func (*StreamingBaseBackup) Path ¶
func (bb *StreamingBaseBackup) Path() string
func (*StreamingBaseBackup) Start ¶
func (bb *StreamingBaseBackup) Start(verifyChecksum bool, diskLimit int32) (err error)
func (*StreamingBaseBackup) Upload ¶
func (bb *StreamingBaseBackup) Upload(ctx context.Context, uploader internal.Uploader, bundleFiles internal.BundleFiles) error
type TablespaceLocation ¶
type TablespaceSpec ¶
type TablespaceSpec struct {
// contains filtered or unexported fields
}
func NewTablespaceSpec ¶
func NewTablespaceSpec(basePrefix string) TablespaceSpec
func (*TablespaceSpec) BasePrefix ¶
func (spec *TablespaceSpec) BasePrefix() (string, bool)
func (*TablespaceSpec) EnsureSymlinkExist ¶
func (spec *TablespaceSpec) EnsureSymlinkExist(location TablespaceLocation) error
func (*TablespaceSpec) MarshalJSON ¶
func (spec *TablespaceSpec) MarshalJSON() ([]byte, error)
func (*TablespaceSpec) TablespaceNames ¶
func (spec *TablespaceSpec) TablespaceNames() []string
func (*TablespaceSpec) UnmarshalJSON ¶
func (spec *TablespaceSpec) UnmarshalJSON(b []byte) error
type TarBallComposerMaker ¶
type TarBallComposerMaker interface {
Make(bundle *Bundle) (internal.TarBallComposer, error)
}
func NewTarBallComposerMaker ¶
func NewTarBallComposerMaker(composerType TarBallComposerType, queryRunner *PgQueryRunner, uploader internal.Uploader, newBackupName string, filePackOptions TarBallFilePackerOptions, withoutFilesMetadata bool) (TarBallComposerMaker, error)
type TarBallComposerType ¶
type TarBallComposerType int
const ( RegularComposer TarBallComposerType = iota + 1 RatingComposer CopyComposer DatabaseComposer )
type TarBallFilePackerImpl ¶
type TarBallFilePackerImpl struct {
IncrementFromChkpNum *uint32
// contains filtered or unexported fields
}
func NewTarBallFilePacker ¶
func NewTarBallFilePacker(deltaMap PagedFileDeltaMap, incrementFromLsn *LSN, files internal.BundleFiles, options TarBallFilePackerOptions) *TarBallFilePackerImpl
func (*TarBallFilePackerImpl) PackFileIntoTar ¶
func (p *TarBallFilePackerImpl) PackFileIntoTar(cfi *internal.ComposeFileInfo, tarBall internal.TarBall) error
func (*TarBallFilePackerImpl) UpdateDeltaMap ¶
func (p *TarBallFilePackerImpl) UpdateDeltaMap(deltaMap PagedFileDeltaMap)
type TarBallFilePackerOptions ¶
type TarBallFilePackerOptions struct {
// contains filtered or unexported fields
}
func NewTarBallFilePackerOptions ¶
func NewTarBallFilePackerOptions(verifyPageChecksums, storeAllCorruptBlocks bool) TarBallFilePackerOptions
type TarFilesCollection ¶
type TarFilesCollection struct {
// contains filtered or unexported fields
}
func (*TarFilesCollection) AddFile ¶
func (collection *TarFilesCollection) AddFile(file *RatedComposeFileInfo)
type TarSizeError ¶
type TarSizeError struct {
// contains filtered or unexported fields
}
func (TarSizeError) Error ¶
func (err TarSizeError) Error() string
type TarballStreamer ¶
type TarballStreamer struct {
Tee []string
TeeIo *bytes.Buffer
Remaps TarballStreamerRemaps
Files internal.BundleFiles
// contains filtered or unexported fields
}
func NewTarballStreamer ¶
func NewTarballStreamer(input io.Reader, maxTarSize int64, bundleFiles internal.BundleFiles) (streamer *TarballStreamer)
func (*TarballStreamer) ArchiveDone ¶
func (streamer *TarballStreamer) ArchiveDone() bool
func (*TarballStreamer) NextInputFile ¶
func (streamer *TarballStreamer) NextInputFile() (err error)
type TarballStreamerRemap ¶
type TarballStreamerRemap struct {
// contains filtered or unexported fields
}
func NewTarballStreamerRemap ¶
func NewTarballStreamerRemap(from string, to string) (tsr *TarballStreamerRemap, err error)
type TarballStreamerRemaps ¶
type TarballStreamerRemaps []TarballStreamerRemap
type TimeLineHistFile ¶
type TimeLineHistFile struct {
TimeLineID uint32
Filename string
// contains filtered or unexported fields
}
The TimeLineHistFile struct represents a TimeLineHistory file containing TimeLineHistFileRows. Since TimeLineHistFileRows are only parsed 0 or 1 rimes, the data is only preserved as []byte and parsed to TimeLineHistFileRows when required.
func NewTimeLineHistFile ¶
func NewTimeLineHistFile(timelineid uint32, filename string, body []byte) (TimeLineHistFile, error)
NewTimeLineHistFile is a helper function to define a new TimeLineHistFile
func (TimeLineHistFile) LSNToTimeLine ¶
func (tlh TimeLineHistFile) LSNToTimeLine(lsn pglogrepl.LSN) (uint32, error)
LSNToTimeLine uses rows() to get all TimeLineHistFileRows and from those rows get the timeline that a LS belongs too.
func (TimeLineHistFile) Name ¶
func (tlh TimeLineHistFile) Name() string
Name returns the filename of this wal segment. This is a convenience function used by the WalUploader.
type TimeLineHistFileRow ¶
The TimeLineHistFileRow struct represents one line in the TimeLineHistory file
type TimelineCheckDetails ¶
type TimelineCheckDetails struct {
CurrentTimelineID uint32 `json:"current_timeline_id"`
HighestStorageTimelineID uint32 `json:"highest_storage_timeline_id"`
}
func (TimelineCheckDetails) NewPlainTextReader ¶
func (details TimelineCheckDetails) NewPlainTextReader() (io.Reader, error)
type TimelineCheckRunner ¶
type TimelineCheckRunner struct {
// contains filtered or unexported fields
}
func NewTimelineCheckRunner ¶
func NewTimelineCheckRunner(walFolderFilenames []string, currentSegment WalSegmentDescription) (TimelineCheckRunner, error)
func (TimelineCheckRunner) Name ¶
func (check TimelineCheckRunner) Name() string
func (TimelineCheckRunner) Run ¶
func (check TimelineCheckRunner) Run() (WalVerifyCheckResult, error)
func (TimelineCheckRunner) Type ¶
func (check TimelineCheckRunner) Type() WalVerifyCheckType
type TimelineHistoryRecord ¶
type TimelineHistoryRecord struct {
// contains filtered or unexported fields
}
func GetTimeLineHistoryRecords ¶
func GetTimeLineHistoryRecords(startTimeline uint32, walFolder storage.Folder) ([]*TimelineHistoryRecord, error)
func NewTimelineHistoryRecord ¶
func NewTimelineHistoryRecord(timeline uint32, lsn LSN, comment string) *TimelineHistoryRecord
type TimelineInfo ¶
type TimelineInfo struct {
ID uint32 `json:"id"`
ParentID uint32 `json:"parent_id"`
SwitchPointLsn LSN `json:"switch_point_lsn"`
StartSegment string `json:"start_segment"`
EndSegment string `json:"end_segment"`
SegmentsCount int `json:"segments_count"`
MissingSegments []string `json:"missing_segments"`
Backups []*BackupDetail `json:"backups,omitempty"`
SegmentRangeSize uint64 `json:"segment_range_size"`
Status string `json:"status"`
}
func NewTimelineInfo ¶
func NewTimelineInfo(walSegments *WalSegmentsSequence, historyRecords []*TimelineHistoryRecord) (*TimelineInfo, error)
type TimelineWithSegmentNo ¶
type TimelineWithSegmentNo struct {
// contains filtered or unexported fields
}
func NewTimelineWithSegmentNo ¶
func NewTimelineWithSegmentNo(tl uint32, seg uint64) *TimelineWithSegmentNo
func NewTimelineWithSegmentNoBy ¶
func NewTimelineWithSegmentNoBy(record *TimelineHistoryRecord) *TimelineWithSegmentNo
type UnexpectedTarDataError ¶
type UnexpectedTarDataError struct {
// contains filtered or unexported fields
}
func (UnexpectedTarDataError) Error ¶
func (err UnexpectedTarDataError) Error() string
type UnknownIncrementFileHeaderError ¶
type UnknownIncrementFileHeaderError struct {
// contains filtered or unexported fields
}
func (UnknownIncrementFileHeaderError) Error ¶
func (err UnknownIncrementFileHeaderError) Error() string
type UnknownTableSpaceError ¶
type UnknownTableSpaceError struct {
// contains filtered or unexported fields
}
func (UnknownTableSpaceError) Error ¶
func (err UnknownTableSpaceError) Error() string
type UnknownWalVerifyCheckError ¶
type UnknownWalVerifyCheckError struct {
// contains filtered or unexported fields
}
func NewUnknownWalVerifyCheckError ¶
func NewUnknownWalVerifyCheckError(checkType WalVerifyCheckType) UnknownWalVerifyCheckError
func (UnknownWalVerifyCheckError) Error ¶
func (err UnknownWalVerifyCheckError) Error() string
type UnsupportedPostgresVersionError ¶
type UnsupportedPostgresVersionError struct {
// contains filtered or unexported fields
}
func NewUnsupportedPostgresVersionError ¶
func NewUnsupportedPostgresVersionError(version int) UnsupportedPostgresVersionError
func (UnsupportedPostgresVersionError) Error ¶
func (err UnsupportedPostgresVersionError) Error() string
type UnwrapResult ¶
type UnwrapResult struct {
// contains filtered or unexported fields
}
type VerifyFileResult ¶ added in v0.15.1
type VerifyFileResult struct {
Name string `json:"name"`
StoredSHA256 string `json:"stored_sha256,omitempty"`
ComputedSHA256 string `json:"computed_sha256,omitempty"`
Match bool `json:"match"`
NoStoredChecksum bool `json:"no_stored_checksum,omitempty"`
ReadError string `json:"read_error,omitempty"`
}
type WalDeltaRecorder ¶
type WalDeltaRecorder struct {
// contains filtered or unexported fields
}
func NewWalDeltaRecorder ¶
func NewWalDeltaRecorder(blockLocationConsumer chan walparser.BlockLocation) *WalDeltaRecorder
type WalDeltaRecordingReader ¶
type WalDeltaRecordingReader struct {
PageReader walparser.WalPageReader
WalParser walparser.WalParser
PageDataLeftover []byte
Recorder *WalDeltaRecorder
// contains filtered or unexported fields
}
func NewWalDeltaRecordingReader ¶
func NewWalDeltaRecordingReader(walFileReader io.Reader, walFilename string, manager *DeltaFileManager) (*WalDeltaRecordingReader, error)
func (*WalDeltaRecordingReader) Close ¶
func (reader *WalDeltaRecordingReader) Close() error
func (*WalDeltaRecordingReader) Read ¶
func (reader *WalDeltaRecordingReader) Read(p []byte) (n int, err error)
func (*WalDeltaRecordingReader) RecordBlockLocationsFromPage ¶
func (reader *WalDeltaRecordingReader) RecordBlockLocationsFromPage() error
type WalFetchMessageHandler ¶
type WalFetchMessageHandler struct {
// contains filtered or unexported fields
}
type WalMetadataDescription ¶
type WalMetadataUploader ¶
type WalMetadataUploader struct {
// contains filtered or unexported fields
}
func NewWalMetadataUploader ¶
func NewWalMetadataUploader(walMetadataSetting string) (*WalMetadataUploader, error)
type WalPart ¶
type WalPart struct {
// contains filtered or unexported fields
}
func NewWalPart ¶
func NewWalPart(dataType WalPartDataType, id uint8, data []byte) *WalPart
type WalPartDataType ¶
type WalPartDataType uint8
const ( PreviousWalHeadType WalPartDataType = 0 WalTailType WalPartDataType = 1 WalHeadType WalPartDataType = 2 )
type WalPartFile ¶
func LoadPartFile ¶
func LoadPartFile(reader io.Reader) (*WalPartFile, error)
func NewWalPartFile ¶
func NewWalPartFile() *WalPartFile
func (*WalPartFile) CombineRecords ¶
func (partFile *WalPartFile) CombineRecords() ([]walparser.XLogRecord, error)
func (*WalPartFile) IsComplete ¶
func (partFile *WalPartFile) IsComplete() bool
type WalPartRecorder ¶
type WalPartRecorder struct {
// contains filtered or unexported fields
}
func NewWalPartRecorder ¶
func NewWalPartRecorder(walFilename string, manager *DeltaFileManager) (*WalPartRecorder, error)
func (*WalPartRecorder) SaveNextWalHead ¶
func (recorder *WalPartRecorder) SaveNextWalHead(head []byte) error
func (*WalPartRecorder) SavePreviousWalTail ¶
func (recorder *WalPartRecorder) SavePreviousWalTail(tailData []byte) error
type WalPrefetcher ¶
type WalPrefetcher interface {
Prefetch(reader internal.StorageFolderReader, walFileName string, location string)
}
type WalSegment ¶
type WalSegment struct {
TimeLine uint32
StartLSN pglogrepl.LSN
// contains filtered or unexported fields
}
The WalSegment object represents a Postgres Wal Segment, holding all wal data for a wal file.
func NewWalSegment ¶
func NewWalSegment(timeline uint32, location pglogrepl.LSN, walSegmentBytes uint64) *WalSegment
NewWalSegment is a helper function to declare a new WalSegment.
func (*WalSegment) Name ¶
func (seg *WalSegment) Name() string
Name returns the filename of this wal segment. This is also used by the WalUploader to set the name of the destination file during upload of the wal segment.
func (*WalSegment) NextWalSegment ¶
func (seg *WalSegment) NextWalSegment() (*WalSegment, error)
NextWalSegment is a helper function to create the next wal segment which comes after this wal segment. Note that this will be on the same timeline. the convenience is that it also automatically processes a message that crosses the boundary between the two segments.
func (*WalSegment) Read ¶
func (seg *WalSegment) Read(p []byte) (n int, err error)
Read is what makes the WalSegment an io.Reader, which can be handled by WalUploader.UploadWalFile to write to a file.
func (*WalSegment) Stream ¶
func (seg *WalSegment) Stream(conn *pgconn.PgConn, standbyMessageTimeout time.Duration) (ProcessMessageResult, error)
Stream is a helper function to retrieve messages from Postgres and have them processed by processMessage().
type WalSegmentDescription ¶
type WalSegmentDescription struct {
Number WalSegmentNo
Timeline uint32
}
func NewWalSegmentDescription ¶
func NewWalSegmentDescription(name string) (WalSegmentDescription, error)
func QueryCurrentWalSegment ¶
func QueryCurrentWalSegment() WalSegmentDescription
func (WalSegmentDescription) GetFileName ¶
func (desc WalSegmentDescription) GetFileName() string
type WalSegmentNo ¶
type WalSegmentNo uint64
func NewWalSegmentNo ¶
func NewWalSegmentNo(lsn LSN) WalSegmentNo
func (WalSegmentNo) GetFilename ¶
func (walSegmentNo WalSegmentNo) GetFilename(timeline uint32) string
func (WalSegmentNo) Next ¶
func (walSegmentNo WalSegmentNo) Next() WalSegmentNo
type WalSegmentNotFoundError ¶
type WalSegmentNotFoundError struct {
// contains filtered or unexported fields
}
func (WalSegmentNotFoundError) Error ¶
func (err WalSegmentNotFoundError) Error() string
type WalSegmentRunner ¶
type WalSegmentRunner struct {
// contains filtered or unexported fields
}
func NewWalSegmentRunner ¶
func NewWalSegmentRunner( startWalSegment WalSegmentDescription, segments map[WalSegmentDescription]bool, stopSegmentNo WalSegmentNo, timelineSwitchMap map[WalSegmentNo]*TimelineHistoryRecord, ) *WalSegmentRunner
func (*WalSegmentRunner) Current ¶
func (r *WalSegmentRunner) Current() WalSegmentDescription
func (*WalSegmentRunner) ForceMoveNext ¶
func (r *WalSegmentRunner) ForceMoveNext()
func (*WalSegmentRunner) Next ¶
func (r *WalSegmentRunner) Next() (WalSegmentDescription, error)
type WalSegmentScanner ¶
type WalSegmentScanner struct {
ScannedSegments []ScannedSegmentDescription
// contains filtered or unexported fields
}
WalSegmentScanner is used to scan the WAL segments storage
func NewWalSegmentScanner ¶
func NewWalSegmentScanner(walSegmentRunner *WalSegmentRunner) *WalSegmentScanner
func (*WalSegmentScanner) AddScannedSegment ¶
func (sc *WalSegmentScanner) AddScannedSegment(description WalSegmentDescription, status ScannedSegmentStatus)
func (*WalSegmentScanner) GetMissingSegmentsDescriptions ¶
func (sc *WalSegmentScanner) GetMissingSegmentsDescriptions() []WalSegmentDescription
GetMissingSegmentsDescriptions returns a slice containing WalSegmentDescription of each missing segment
func (*WalSegmentScanner) Scan ¶
func (sc *WalSegmentScanner) Scan(config SegmentScanConfig) error
Scan traverse the WAL storage with WalSegmentRunner. Scan starts from the WalSegmentRunner's current position, so in case of subsequent Scan() call it will continue from the position where it stopped previously.
Scan always stops if: - Stop segment is reached OR - Unknown error encountered Also, it may be configured to stop after: - Scanning the ScanSegmentsLimit of segments - Finding the first segment which exists in WAL storage
type WalSegmentsSequence ¶
type WalSegmentsSequence struct {
TimelineID uint32
WalSegmentNumbers map[WalSegmentNo]bool
MinSegmentNo WalSegmentNo
MaxSegmentNo WalSegmentNo
}
func NewSegmentsSequence ¶
func NewSegmentsSequence(id uint32, segmentNo WalSegmentNo) *WalSegmentsSequence
func (*WalSegmentsSequence) AddWalSegmentNo ¶
func (seq *WalSegmentsSequence) AddWalSegmentNo(number WalSegmentNo)
func (*WalSegmentsSequence) FindMissingSegments ¶
func (seq *WalSegmentsSequence) FindMissingSegments() ([]WalSegmentDescription, error)
type WalShowJSONOutputWriter ¶
type WalShowJSONOutputWriter struct {
// contains filtered or unexported fields
}
WalShowJsonOutputWriter writes the detailed JSON output
func (*WalShowJSONOutputWriter) Write ¶
func (writer *WalShowJSONOutputWriter) Write(timelineInfos []*TimelineInfo) error
type WalShowOutputType ¶
type WalShowOutputType int
const ( TableOutput WalShowOutputType = iota + 1 JSONOutput )
type WalShowOutputWriter ¶
type WalShowOutputWriter interface {
Write(timelineInfos []*TimelineInfo) error
}
WalShowOutputWriter writes the output of wal-show command execution result
func NewWalShowOutputWriter ¶
func NewWalShowOutputWriter(outputType WalShowOutputType, output io.Writer, includeBackups bool) WalShowOutputWriter
type WalShowTableOutputWriter ¶
type WalShowTableOutputWriter struct {
// contains filtered or unexported fields
}
WalShowTableOutputWriter writes the output in compact pretty table
func (*WalShowTableOutputWriter) Write ¶
func (writer *WalShowTableOutputWriter) Write(timelineInfos []*TimelineInfo) error
type WalUploader ¶
type WalUploader struct {
internal.Uploader
ArchiveStatusManager asm.ArchiveStatusManager
PGArchiveStatusManager asm.ArchiveStatusManager
*DeltaFileManager
}
func ConfigureWalUploader ¶
func ConfigureWalUploader(baseUploader internal.Uploader) (uploader *WalUploader, err error)
func NewWalUploader ¶
func NewWalUploader( baseUploader internal.Uploader, deltaFileManager *DeltaFileManager, ) *WalUploader
func PrepareMultiStorageWalUploader ¶
func PrepareMultiStorageWalUploader(folder storage.Folder, targetStorage string) (*WalUploader, error)
func (*WalUploader) FlushFiles ¶
func (walUploader *WalUploader) FlushFiles(ctx context.Context)
func (*WalUploader) UploadWalFile ¶
func (walUploader *WalUploader) UploadWalFile(ctx context.Context, file ioextensions.NamedReader) error
type WalVerifyCheckDetails ¶
type WalVerifyCheckResult ¶
type WalVerifyCheckResult struct {
Status WalVerifyCheckStatus `json:"status"`
Details WalVerifyCheckDetails `json:"details"`
}
type WalVerifyCheckRunner ¶
type WalVerifyCheckRunner interface {
Type() WalVerifyCheckType
Run() (WalVerifyCheckResult, error)
}
func BuildWalVerifyCheckRunner ¶
func BuildWalVerifyCheckRunner( checkType WalVerifyCheckType, rootFolder storage.Folder, walFolderFilenames []string, currentWalSegment WalSegmentDescription, backupSearchParams BackupSearchParams, ) (WalVerifyCheckRunner, error)
type WalVerifyCheckStatus ¶
type WalVerifyCheckStatus int
const ( StatusOk WalVerifyCheckStatus = iota + 1 StatusWarning StatusFailure )
func (WalVerifyCheckStatus) MarshalText ¶
func (status WalVerifyCheckStatus) MarshalText() ([]byte, error)
func (WalVerifyCheckStatus) String ¶
func (status WalVerifyCheckStatus) String() string
type WalVerifyCheckType ¶
type WalVerifyCheckType int
func (WalVerifyCheckType) MarshalText ¶
func (checkType WalVerifyCheckType) MarshalText() (text []byte, err error)
func (WalVerifyCheckType) String ¶
func (checkType WalVerifyCheckType) String() string
type WalVerifyJSONOutputWriter ¶
type WalVerifyJSONOutputWriter struct {
// contains filtered or unexported fields
}
WalVerifyJsonOutputWriter writes the detailed JSON output
func (*WalVerifyJSONOutputWriter) Write ¶
func (writer *WalVerifyJSONOutputWriter) Write(results map[WalVerifyCheckType]WalVerifyCheckResult) error
type WalVerifyOutputType ¶
type WalVerifyOutputType int
const ( WalVerifyTableOutput WalVerifyOutputType = iota + 1 WalVerifyJSONOutput )
type WalVerifyOutputWriter ¶
type WalVerifyOutputWriter interface {
Write(results map[WalVerifyCheckType]WalVerifyCheckResult) error
}
WalVerifyOutputWriter writes the output of wal-verify command execution result
func NewWalVerifyOutputWriter ¶
func NewWalVerifyOutputWriter(outputType WalVerifyOutputType, output io.Writer) WalVerifyOutputWriter
type WalVerifyTableOutputWriter ¶
type WalVerifyTableOutputWriter struct {
// contains filtered or unexported fields
}
WalVerifyTableOutputWriter writes the output as pretty table
func (*WalVerifyTableOutputWriter) Write ¶
func (writer *WalVerifyTableOutputWriter) Write(result map[WalVerifyCheckType]WalVerifyCheckResult) error
Source Files
¶
- backup.go
- backup_detail.go
- backup_fetch_handler.go
- backup_fetch_handler_new.go
- backup_list_handler.go
- backup_new.go
- backup_push_handler.go
- backup_sentinel_dto.go
- backup_terminator.go
- backup_util.go
- backup_verify_handler.go
- bguploader.go
- bundle.go
- bundle_files.go
- catchup_fetch_handler.go
- catchup_file_unwrapper.go
- catchup_push_handler.go
- catchup_send_recieve_handler.go
- cleaner.go
- configure.go
- connect.go
- copy.go
- copy_tar_ball_composer.go
- daemon_handler.go
- daemon_signal_unix.go
- default_file_unwrapper.go
- delete.go
- delete_util.go
- delta_backup_configurator.go
- delta_file.go
- delta_file_chan_writer.go
- delta_file_manager.go
- delta_map_downloader.go
- delta_no.go
- deploy_metadata.go
- dir_database_tar_ball_composer.go
- extract_provider.go
- extract_provider_with_spec.go
- fetch_config.go
- file_unwrapper.go
- generic_meta_interactor.go
- incremental_page_reader.go
- integrity_check_runner.go
- lsn.go
- names_metadata.go
- paged_file_delta_map.go
- paged_file_verifier.go
- pagefile.go
- pagefile_new.go
- pg_alive_watcher.go
- pg_control_data.go
- physical_slot.go
- postgres_page_header.go
- prefetch.go
- query_runner.go
- rating_tar_ball_composer.go
- regular_tar_ball_composer.go
- streaming_base_backup.go
- tablespace_spec.go
- tar_ball_composer.go
- tar_ball_file_packer.go
- tar_interpreter.go
- tar_interpreter_new.go
- tarball_streamer.go
- tars_to_extract_provider.go
- timeline.go
- timeline_check_runner.go
- timeline_history.go
- timeline_history_record.go
- wal_delta_recorder.go
- wal_delta_recording_reader.go
- wal_delta_util.go
- wal_fetch_handler.go
- wal_metadata_uploader.go
- wal_part.go
- wal_part_file.go
- wal_part_recorder.go
- wal_prefetcher.go
- wal_push_handler.go
- wal_receive_handler.go
- wal_restore_handler.go
- wal_segment.go
- wal_segment_no.go
- wal_segment_runner.go
- wal_segment_scanner.go
- wal_show_handler.go
- wal_show_output_writer.go
- wal_uploader.go
- wal_verify_handler.go
- wal_verify_output_writer.go