pg_html5_email_address
PostgreSQL email validation that is consistent with the HTML5 spec
Repository
bigsmoke/pg_html5_email_address
https://github.com/bigsmoke/pg_html5_email_address
Source
pg_html5_email_address-1.2.3.tar.gz
pg_html5_email_address-1.2.3.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_html5_email_address | 1.2.3 | UTIL | PostgreSQL | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4180 | pg_html5_email_address | No | No | No | Yes | No | Yes | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.2.3 | 1817161514 | pg_html5_email_address | - |
| RPM | PIGSTY | 1.2.3 | 1817161514 | pg_html5_email_address_$v | - |
| DEB | PIGSTY | 1.2.3 | 1817161514 | postgresql-$v-pg-html5-email-address | - |
Build
You can build the RPM / DEB packages for pg_html5_email_address using pig build:
Install
You can install pg_html5_email_address directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
pg_html5_email_address: HTML5 email address validation for PostgreSQL
Provides email address validation consistent with the HTML5 <input type="email"> specification.
Domain Type: html5_email
A domain type that enforces HTML5 email validation rules with case-insensitive comparison:
Function: html5_email_regexp()
Returns a regex matching valid HTML5 email addresses:
With optional capturing groups for local and domain parts:
Validation Rules
- Spaces are not allowed
- Non-ASCII characters are not allowed (neither in local nor domain part)
- There must be something after the
@ - Special characters like
!#$%&'*+/=?^_{|}~-` are allowed in the local part
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)