↑↓ select ↵ open ⌫ change scope Open full search

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

Functions / System Administration Functions

pg_read_binary_file

Read the PG 18 manual

Returns all or part of a file.

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

Signatures & examples

pg_read_binary_file ( filename text [, offset bigint, length bigint ] [, missing_ok boolean ] ) → bytea
Returns all or part of a file. This function is identical to pg_read_file except that it can read arbitrary binary data, returning the result as bytea not text; accordingly, no encoding checks are performed.
Version history 5
  1. 15 → 16 changed
  2. 12 → 13 changed
  3. 10 → 11 changed
  4. 9.4 → 9.5 changed
  5. 9.0 → 9.1 added

Definition snapshot: b7bd9cda · English manual source