Skip to content

aleksabl/hashtypes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PGXN version Build Status

About this project

This project is a fork of https://github.com/infofarmer/hashtypes. This fork provides the following enhancements:

  • Support for BINARY export/import
  • Support for aggregate functions (min/max)
  • Fixed versioning with regards to PGXN
  • Support for parallelism (for Postgresql 9.6+)
  • Some performance enhancements

Installation

The easiest way to get started with this project is to use PGXN.

First: Install pgxn (sudo apt install pgxnclient or similar for other distros). Then run sudo pgxnclient install aleksabl-hashtypes.

Use

Connect to the database you want. First you need to install the extension for the current database: CREATE EXTENSION hashtypes.

Example usage:

CREATE TABLE shatest(a sha256)
INSERT INTO shatest VALUES ('aec750369ad69194f076f675afae3872e8d1a5f3b6c68ec3f9278f');
INSERT INTO shatest VALUES ('000000369ad69194f076f675afae3872e8d1a5f3b6c68ec3f9278f');

select * from shatest where a > '100000000000000000000000000000000000000000000000000000');

About

sha1, md5 and other data types for PostgreSQL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TSQL 63.7%
  • C 31.9%
  • Makefile 3.7%
  • PLpgSQL 0.7%