Skip to content

pgpm-types

Reusable domains for attachments, email, hostnames, images, uploads and URLs.

pgpm-types · Reusable domains for attachments, email, hostnames, images, uploads and URLs.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101681pgpm-typespgpm-types0.15.5TYPEMITSQL
Relationships
Requirescitext pgpm-verify plpgsql

Usage

Sources:

pgpm-types — Core PostgreSQL data types with SQL scripts. Use it when application data needs this type, domain, or its operators. Its extension dependencies must be installed and validated first.

Core Workflow

CREATE EXTENSION "pgpm-types";

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

  • attachment is an extension-defined domain.
  • email is an extension-defined domain.
  • hostname is an extension-defined domain.
  • image is an extension-defined domain.
  • origin is an extension-defined domain.
  • upload is an extension-defined domain.
  • url is an extension-defined domain.

Requirements and Caveats

  • The reviewed control file declares default version 0.15.5.
  • Install the confirmed extension dependencies first: plpgsql, citext, pgpm-verify.
  • 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.

Table reader