event_source
Read PG 18 manual ↗When logging to event log is enabled, this parameter determines the program name used to identify PostgreSQL messages in the log.
- Type
- string
- Context
- postmaster
- Measured default
- PostgreSQL
- Unit
- —
- Metadata snapshot
- 18
Definition PG 18 manual
When logging to event log is enabled, this parameter determines the program name used to identify PostgreSQL messages in the log. The default is PostgreSQL. This parameter can only be set at server start.
Measured default history
| Version interval | Default |
|---|---|
| 9.2 – 19 | PostgreSQL |
Authored guidance from the GUC source snapshot; the version-specific manual above is the definition reference. View source ↗
How it works
event_source sets the application name used to identify PostgreSQL messages in the event log. This is a Windows event-log identifier and has no effect unless eventlog is an active log destination.
event_source is a POSTMASTER-context setting: PostgreSQL reads it during server startup, and a configuration reload or session SET cannot activate a new value.
event_source is consulted only on Windows when eventlog is selected in log_destination; Windows Event Log registration, permissions, routing, and retention supply the rest of the pipeline.
Operational considerations
Expecting a reload or SET to activate event_source, although it requires a controlled server restart.
Changing the source name without registering or updating Windows Event Log routing and access policy.
Expecting event_source to have any effect when eventlog is not an active log destination or the platform is not Windows.
Changing event_source globally without a rollback plan and a client or operational compatibility test.
Workload guidance
OLAP: Keep the same event source across workload classes so Windows collection rules and dashboards do not fragment by profile.
OLTP: Set event_source only for a Windows eventlog deployment, using a stable non-secret identity registered and routed by the host logging policy.
SMALL: Leave event_source at its default unless eventlog is selected; changing a dormant label provides no capacity or observability benefit.
Version history 2
- PG 12 → 13changed
- PG 9.1 → 9.2added
Related entries
Further reading
Definition snapshot: english-manuals:004b4550075918c9c5dc003290d… · English manual source