row_number () → bigintReturns the number of the current row within its partition, counting from 1.
Functions / Window Functions
row_number
Read the PG 18 manualReturns the number of the current row within its partition, counting from 1.
Reading PG 18current·documented in 19 of 27 versions, 8.4 to 20
Signatures & examples
Definition snapshot: b7bd9cda · English manual source