↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / Aggregate Functions

Computes the number of input rows.

Reading PG 18current·documented in 27 of 27 versions, 7.1 to 20

Signatures & examples

count ( * ) → bigint
Computes the number of input rows.
count ( "any" ) → bigint
Computes the number of input rows in which the input value is not null.
Version history 4
  1. 12 → 13 changed
  2. 8.1 → 8.2 changed
  3. 7.2 → 7.3 changed
  4. 7.1 → 7.2 changed

Definition snapshot: b7bd9cda · English manual source