row_number () → bigintReturns the number of the current row within its partition, counting from 1.
FUNCTIONS / WINDOW FUNCTIONS
row_number
Read PG 18 manual ↗Returns the number of the current row within its partition, counting from 1.
Signatures & examples
Version history 1
- PG 12 → 13changed
Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source