Giter Club home page Giter Club logo

dbstat's Introduction

DB Statistics Collector

Summary:

DB Statistics Collector (dbstat) is a PostgreSQL extension that collects table metrics such as exact row count, and the timing of insert/update/delete statements.

This is a learning exercise in the use of libpq and C-based extensions.

Requirements:

  • PostgreSQL 9.6+
  • gcc
  • development packages for postgres

Installation

  1. Checkout the dbstat source from github.
  2. Ensure that pg_config is in the user's path
  3. As root, run 'make install' with dbstat.control in your cwd.
  4. Run 'make' to compile dbstat
  5. Login to the target database server.
  6. Run 'CREATE EXTENSION dbstat;'
  7. Start dbstat with the connection parameters to the target DB server/instance.

Note: You may need to symlink the libpq-fe.h file to /usr/includes. This file is typically located in: /usr/pgsql-version/includes/

Changelog

Version 0.2

  • Multithreaded listeners
  • SIGHUP handler reloads and reissues listeners
  • Supports NoSQL / KV store backends for statistics

Version 0.1

Initial version

dbstat's People

Contributors

spd010273 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.