Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Block-level incremental backup engine for PostgreSQL

License

NotificationsYou must be signed in to change notification settings

postgrespro/ptrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Ptrack is a fast block-level incremental backup engine for PostgreSQL. Currentlyptrack codebase is split approximately 50%/50% between PostgreSQL core patch and extension. All public SQL API methods are placed in theptrack extension, while the main engine is still in core.

Installation

  1. Get latest PostgreSQL sources:
git clone https://github.com/postgres/postgres.git -b REL_12_STABLE&&cd postgres
  1. Apply PostgreSQL core patch:
git apply ptrack/patches/ptrack-2.0-core.diff
  1. Compile and install PostgreSQL

  2. Setptrack_map_size (in MB)

echo'ptrack_map_size = 64'>> postgres_data/postgresql.conf
  1. Compile and installptrack extension
USE_PGXS=1 make -C /path/to/ptrack/ install
  1. Run PostgreSQL and createptrack extension
CREATE EXTENSION ptrack;

Public SQL API

  • ptrack_version() --- returns ptrack version string (2.0 currently).
  • pg_ptrack_get_pagemapset('LSN') --- returns a set of changed data files with bitmaps of changed blocks since specified LSN.
  • pg_ptrack_control_lsn() --- returns LSN of the last ptrack map initialization.
  • pg_ptrack_get_block --- returns a requested block of relation.

Architecture

TBA

Roadmap

The main goal currently is to move as muchptrack functionality into the extension as possible and leave only certain requred hooks as core patch.

About

Block-level incremental backup engine for PostgreSQL

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors16


[8]ページ先頭

©2009-2025 Movatter.jp