↑↓ select ↵ open ⌫ change scope Open full search

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

Functions / System Administration Functions

pg_stat_file

Read the PG 18 manual

Returns a record containing the file's size, last access time stamp, last modification time stamp, last file status change time stamp (Unix platforms only), file creation time stamp (Windows only), and a flag indicating if it is a directory.

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

Signatures & examples

pg_stat_file ( filename text [, missing_ok boolean ] ) → record ( size bigint, access timestamp with time zone, modification timestamp with time zone, change timestamp with time zone, creation timestamp with time zone, isdir boolean )
Returns a record containing the file's size, last access time stamp, last modification time stamp, last file status change time stamp (Unix platforms only), file creation time stamp (Windows only), and a flag indicating if it is a directory.
Version history 4
  1. 12 → 13 changed
  2. 10 → 11 changed
  3. 9.4 → 9.5 changed
  4. 8.0 → 8.1 added

Definition snapshot: b7bd9cda · English manual source