Skip to content

bashtanov/trunkfingerprint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trunkfingerprint

This thing calculates a fingerprint of DB structure.

The main function to call is a set-returning

trunkfingerprint.get_db_structure_hash(
       p_level int default 0,
       p_catalog regclass default null,
       p_exclude_schemas name[] default '{}'
)

p_level could be

  • 0 -- single fingerprint for the whole DB structure,
  • 1 -- one value for each catalog,
  • 2 -- a line per each catalog object.

p_catalog is optional. If set, only the specified catalog is explored.

p_exclude_schemas is an array of schemas to exclude from calculation.

Probably works with Postgres 9.4 only at the moment. Run sudo make install to install it, and create extension trunkfingerprint; to add it to a particular database.

About

this thing calculates a fingerprint of DB structure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PLpgSQL 99.6%
  • Makefile 0.4%