↑↓ select ↵ open ⌫ change scope Open full search

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

Functions / System Information Functions And Operators

pg_backend_pid

Read the PG 18 manual

Returns the process ID of the server process attached to the current session.

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

Signatures & examples

pg_backend_pid () → integer
Returns the process ID of the server process attached to the current session.
Version history 2
  1. 12 → 13 changed
  2. 8.3 → 8.4 added

Definition snapshot: b7bd9cda · English manual source