isn
data types for international product numbering standards
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
isn | 1.2 | TYPE | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3930 | isn | No | Yes | No | Yes | Yes | No | - |
Version
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| 1.2 | 1.2 | 1.2 | 1.2 | 1.2 |
Install
Note: This is a built-in contrib extension of PostgreSQL
Usage
The isn extension provides data types for international product numbering standards with validation and check-digit verification.
Data Types
| Type | Description |
|---|---|
EAN13 | European Article Numbers (always 13-digit) |
ISBN13 | International Standard Book Numbers (13-digit) |
ISMN13 | International Standard Music Numbers (13-digit) |
ISSN13 | International Standard Serial Numbers (13-digit) |
ISBN | Book numbers (10-digit short format when possible) |
ISMN | Music numbers (10-digit short format when possible) |
ISSN | Serial numbers (10-digit short format when possible) |
UPC | Universal Product Codes |
Examples
Weak Mode
Enable weak mode to accept invalid check digits (useful for OCR/data cleanup):
Functions
| Function | Description |
|---|---|
is_valid(isn) | Check if value has valid check digit |
make_valid(isn) | Clear the invalid-check-digit flag |
isn_weak() | Return current weak mode status |
isn_weak(boolean) | Set weak mode |
Operators and Indexing
Standard comparison operators (=, <, >, <=, >=, <>) with B-tree and hash index support.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)