Skip to main content

PostgreSQL 18 Data Type Coverage Audit

Authority: PostgreSQL 18 Data Types documentation. This map distinguishes SQL type concepts from PostgreSQL-specific built-ins and specialized internal/polymorphic types.

Type/categoryExamples / exact built-insCoverageDepth
Exact integerssmallint, integer, bigint09–10Core
Exact decimalsdecimal, numeric09–10Core
Approximate numericreal, double precision09–10Core
Serial pseudo-typessmallserial, serial, bigserial10, 41Core + legacy guidance
IdentityGENERATED ... AS IDENTITY over integer types08, 10, 41Core / preferred modern ID DDL
Monetarymoney18Reference + caveats
Charactercharacter(n), char(n), character varying(n), varchar(n), text09, 11Core
Binarybytea09, 18Core
Date/timedate, time, time with time zone, timestamp, timestamp with time zone, interval09, 13Deep
Booleanboolean09, 12Core
Enumerateduser-defined enum types12Core + migration trade-offs
UUIDuuid, PG18 uuidv7() generation14Deep
JSONjson, jsonb16Deep
XMLxml18Reference
Arraysone- and multidimensional arrays of element types15Deep
Compositetable row types and CREATE TYPE ... AS (...)18, 38Core/Advanced
DomainsCREATE DOMAIN over a base type12Core
Rangeint4range, int8range, numrange, tsrange, tstzrange, daterange17Deep
Multirangeint4multirange, int8multirange, nummultirange, tsmultirange, tstzmultirange, datemultirange17Deep
Geometricpoint, line, lseg, box, path, polygon, circle18Reference
Network addressinet, cidr, macaddr, macaddr818Core/Reference
Bit stringsbit(n), bit varying(n) / varbit18Reference
Text searchtsvector, tsquery103Deep
Object identifiersoid plus alias/reg types such as regclass, regtype, regproc, regprocedure, regoper, regoperator, regconfig, regdictionary, regnamespace, regrole, regcollation18, 106Reference / internals-aware
WAL positionpg_lsn18, 82, 178Core for operations
Pseudo-typesrecord, void, trigger, event_trigger, cstring, internal, polymorphic any*/anycompatible* families and related routine-only types18, 98–102Advanced
User-defined base typesextension/server-programming type definitions18, 98–104, 183Advanced

Design audit​

The handbook teaches type choice by semantics rather than storage trivia:

  • use exact decimal for money-like arithmetic rather than floating point;
  • treat timestamptz as an instant, not a stored timezone label;
  • prefer modern identity syntax over serial for new schemas when sequence-backed integer identity is desired;
  • choose UUIDv7 vs bigint from distribution/locality/size/privacy needs;
  • keep stable relational facts typed instead of burying them in JSONB;
  • use arrays/ranges/network types where their operators match the domain;
  • keep internal/OID/pseudo-types at reference depth unless writing extensions/server routines.

Every PostgreSQL 18 data-type category is therefore covered at a depth proportional to normal developer/DBA use.