gopartman

command module
v0.0.0-...-db0c0e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2015 License: BSD-3-Clause Imports: 21 Imported by: 0

README

gopartman

This package is designed to manage Postgres partitions and borrows (as in, copies and makes best efforts to keep up to date with) SQL from the wonderful pg_partman extension for Postgres. Basically, wraps it. This package is not installing an "extension" into the Postgres database, but it does put all of the functions into a "partman" schema to use. This makes it compatible with hosted Postgres services like Amazon RDS. In order to do this, the SQL from pg_partman was slightly modified.

This package wraps sqlx, which is a great Go package for SQL. So you have full access to its functions.

pg_partman has many functions and you still have full access to them. You should reference the pg_partman manual for andditional information and help.

This package is meant to build a binary which can be used from the command line or daemonized (with optional RESTful API) to run and constantly monitor and manage your Postgres partitions. It can also be brought into another package for use there as well and need not run by itself. Just keep in mind that there are regular tasks that need to be performed to manage your Postgres partition tables. This package will do this maintenance on scheduled tasks which is why you might want to run it by itself.

Features

  • Command line interface for managing partitions (configured in YAML or added via RESTful API)
  • YAML configuration based management of partitions
  • RESTful interface for managing partitions
  • RESTful API for monitoring (with SVG rendering) (to come)
  • Monitoring of partition usage and database health

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL