types
Reusable domains for attachments, email addresses, hostnames, images, uploads, and URLs.
types · Reusable domains for attachments, email addresses, hostnames, images, uploads, and URLs.
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (types.control)
- Official extension SQL (types–0.0.1.sql)
types — Reusable domains for attachments, email addresses, hostnames, images, uploads, and URLs. Use it when application data needs this type, domain, or its operators. Its extension dependencies must be installed and validated first.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
attachmentis an extension-defined domain.emailis an extension-defined domain.hostnameis an extension-defined domain.imageis an extension-defined domain.uploadis an extension-defined domain.urlis an extension-defined domain.
Requirements and Caveats
- The reviewed control file declares default version
0.0.1. - Install the confirmed extension dependencies first:
plpgsql,uuid-ossp,citext. - The control file marks the extension as non-relocatable.
- The control file does not require superuser-only installation.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.