Variable ALLOWED_CAST_TYPESConst
ALLOWED_CAST_TYPES: readonly [
"int",
"integer",
"int2",
"int4",
"int8",
"smallint",
"bigint",
"numeric",
"decimal",
"real",
"double precision",
"float",
"float4",
"float8",
"text",
"varchar",
"char",
"character varying",
"boolean",
"bool",
"date",
"time",
"timestamp",
"timestamptz",
"interval",
"json",
"jsonb",
"uuid",
"bytea",
] = ...
Allowed PostgreSQL type names for the cast() helper. Only these types can be used to prevent SQL injection through type name interpolation.