pg_logfebe
pg_logfebe · log via febe framing protocol to a unix socket
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100432 | pg_logfebe | pg_logfebe | 1.0 | STAT | BSD-2-Clause | C |
Usage
Sources:
pg_logfebe is a preload-only logging module that sends structured PostgreSQL log records to another process over a Unix-domain socket using PostgreSQL front-end/back-end framing. It has no extension SQL objects, so do not run CREATE EXTENSION for it.
Core Workflow
Run a compatible receiver on a protected Unix socket, configure PostgreSQL, and restart the server to load the module.
The receiver first gets version and identity messages, followed by a stream of structured log records. The identity is an operator-chosen label that lets one receiver distinguish PostgreSQL instances.
Protocol and Operational Boundaries
logfebe.unix_socketselects the receiving Unix-domain socket.logfebe.identitysupplies the instance label sent during startup.shared_preload_librariesis required because the module installs logging hooks during server startup.
The wire framing resembles PostgreSQL’s FE/BE protocol, but the documented log stream is a separate, versioned protocol and needs a purpose-built receiver. Protect the socket directory and downstream logs because structured records may contain query text, error details, and other sensitive database information. Configuration changes to the preload list require a restart; there is no per-database DDL or SQL API.