PostgreSQL: Documentation: 17: 8.1. Numeric Types
Numeric types consist of two-, four-, and eight-byte integers, four- and eight-byte floating-point numbers, and selectable-precision decimals. Table 8.2 lists the available types. Table 8.2. Numeric Types The syntax of constants for the numeric types is described in Section 4.1.2. The numeric types have a full set of corresponding arithmetic operators and functions. Refer to Chapter 9 for more information. The following sections describe the types in detail. The types smallint, integer, and bigint store whole numbers, that is, numbers without fractional components, of various ranges. Attempts to store values outside of the allowed range will result in an error. The type integer is the common choice, as it offers the best balance between range, storage size, and performance. The smallint type is generally only used if disk space is at a premium. The bigint type is designed to be used when the range of the integer type is insufficient. SQL only specifies the integer types integer (or int
PostgreSQL: Documentation: 18: 8.1. Numeric Types July 16, 2026: PostgreSQL 19 Beta 2 Released! Documentation → PostgreSQL 18 Supported Versions: Current ( 18 ) / 17 / 16 / 15 / 14 Development Versions: 19 / devel Unsupported versions: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 8.1. Numeric Types Prev Up Chapter 8. Data Types Home Next 8.1. Numeric Types # 8.1.1. Integer Types 8.1.2. Arbitrary Precision Numbers 8.1.3. Floating-Point Types 8.1.4. Serial Types Numeric types consist of two-, four-, and eight-byte integers, four- and eight-byte floating-poin
Explore this link on the map →related reading
- 練習 - 探索浮點類型 - Training | Microsoft Learnlearn.microsoft.com
- Don't Do This - PostgreSQL wikiwiki.postgresql.org
- Implementing High-Precision Decimal Arithmetic with CUDA int128 | NVIDIA Technical Blogdeveloper.nvidia.com
- The Type Hierarchy - SQLAlchemy 1.4 Documentationdocs.sqlalchemy.org
- Postgres: Boundless `text` and Back Again — brandur.orgbrandur.org
- Half-precision floating-point format - Wikipediaen.wikipedia.org
- SQL style guide by Simon Holywellsqlstyle.guide
- Floating point from scratch: Hard Mode · Tales on the wireessenceia.github.io
- debezium-examples/postgres-toast at main · debezium/debezium-examples · GitHubgithub.com
- Against SQLscattered-thoughts.net
- Explaining The Postgres Memeavestura.dev
- Schedule | POSETTE: An Event for Postgres 2024 - Citus Datacitusdata.com