F.24. pgstattuple

pgstattuple modules provides various functions to obtain tuple statistics.

F.24.1. Functions

F.24.2. Usage

pgstattuple may be called as a relation function and is defined as follows:

    CREATE OR REPLACE FUNCTION pgstattuple(text) RETURNS pgstattuple_type
     AS 'MODULE_PATHNAME', 'pgstattuple'
     LANGUAGE C STRICT;

    CREATE OR REPLACE FUNCTION pgstattuple(oid) RETURNS pgstattuple_type
     AS 'MODULE_PATHNAME', 'pgstattuplebyid'
     LANGUAGE C STRICT;
  

The argument is the relation name (optionally it may be qualified) or the OID of the relation. Note that pgstattuple only returns one row.