RefLib

Reference library for AI

Back

postgresql_16:9.6.21.1 Data Types

PostgreSQL 16 > Appendixes > Additional Supplied Modules and Extensions > isn — data types for international standard numbers (ISBN, EAN, UPC, etc.) > Data Types

(see isn-datatypes) shows the data types provided by the isn module.

| Data Type | Description | | --- | --- | | EAN13 | European Article Numbers, always displayed in the EAN13 display format | | ISBN13 | International Standard Book Numbers to be displayed in the new EAN13 display format | | ISMN13 | International Standard Music Numbers to be displayed in the new EAN13 display format | | ISSN13 | International Standard Serial Numbers to be displayed in the new EAN13 display format | | ISBN | International Standard Book Numbers to be displayed in the old short display format | | ISMN | International Standard Music Numbers to be displayed in the old short display format | | ISSN | International Standard Serial Numbers to be displayed in the old short display format | | UPC | Universal Product Codes |

Some notes:

1. ISBN13, ISMN13, ISSN13 numbers are all EAN13 numbers. 2. EAN13 numbers aren't always ISBN13, ISMN13 or ISSN13 (some are). 3. Some ISBN13 numbers can be displayed as ISBN. 4. Some ISMN13 numbers can be displayed as ISMN. 5. Some ISSN13 numbers can be displayed as ISSN. 6. UPC numbers are a subset of the EAN13 numbers (they are basically EAN13 without the first 0 digit). 7. All UPC, ISBN, ISMN and ISSN numbers can be represented as EAN13 numbers.

Internally, all these types use the same representation (a 64-bit integer), and all are interchangeable. Multiple types are provided to control display formatting and to permit tighter validity checking of input that is supposed to denote one particular type of number.

The ISBN, ISMN, and ISSN types will display the short version of the number (ISxN 10) whenever it's possible, and will show ISxN 13 format for numbers that do not fit in the short version. The EAN13, ISBN13, ISMN13 and ISSN13 types will always display the long version of the ISxN (EAN13).

Back