select open change scope Open full search

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

FUNCTIONS / SYSTEM ADMINISTRATION FUNCTIONS

Force switch to a new transaction log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function)

Historical documentation for a PostgreSQL version that is no longer supported.

Signatures & examples

pg_switch_xlog ( ) → pg_lsn
Force switch to a new transaction log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function)
Version history 4
  1. PG 9.6 → 10removed
  2. PG 9.5 → 9.6changed
  3. PG 9.3 → 9.4changed
  4. PG 9.0 → 9.1changed

Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source