md5hash
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
md5hash | 1.0.1 | TYPE | BSD-2-Clause | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3610 | md5hash | No | Yes | No | Yes | No | Yes | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0.1 | 1817161514 | md5hash | - |
| RPM | PIGSTY | 1.0.1 | 1817161514 | md5hash_$v | - |
| DEB | PIGSTY | 1.0.1 | 1817161514 | postgresql-$v-md5hash | - |
Build
You can build the RPM / DEB packages for md5hash using pig build:
Install
You can install md5hash directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
Usage
The md5hash extension provides an efficient 128-bit data type for storing MD5 hashes in binary format (16 bytes) instead of text (32+ bytes).
Operators
Standard comparison operators are supported: =, <>, <, >, <=, >=.
Index Support
Btree index operator class is included, enabling efficient lookups and primary key constraints on md5hash columns.
Storage Benefits
Compared to storing MD5 as text, the md5hash type uses approximately 60% of the storage space and provides faster indexed lookups.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)