Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

y-asaba/pg_warmup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pg_warmup

This is a tool to put PostgreSQL's table and index data onto cache memory. You can put contents onto not only kernel cache but also shared buffer.

System Requirements

  • Python (2.7, 3.3)
  • psycopg2 (pip install psycopg2)

How to install

  • Using pip
  % pip install pg_warmup
  • Build from souce code
  % pip install psycopg2
  % python setup.py install

Usage

  • You need to run pg_warmup by postgres superuser
  • You may also need to set PG_* environment variables to connect the server
  • Use -x option if you want to warm up actually. Default is dry-run mode
  • Run "ionice -c 3 cat filename" when -i option is passed
Usage: pg_warmup [options]

Options:
  -h, --help            show this help message and exit
  -t TABLE, --table=TABLE
                        warmup the named table
  -d DATABASE, --database=DATABASE
                        dbname
  -i                    use ionice command
  -s                    cache on shared buffer, not page cache
  -x                    execute warmup

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages