type

BIGINT

PostgreSQL uses a signed 64-bit whole number, suitable for counters that exceed INTEGER. It still has a finite range. Example target: PostgreSQL 17. Run in a disposable database; examples need no existing tables.

Formal Syntax & Structure

sql syntaxsql
BIGINT

Working Example

Example Snippetsql
SELECT CAST(2147483648 AS BIGINT);
SQL Reference