Add database info to TimescaleDB background worker logs #7430
Labels
bgw
The background worker subsystem, including the scheduler
enhancement
An enhancement to an existing feature for functionality
What type of bug is this?
Configuration
What subsystems and features are affected?
Other
What happened?
I have many DBs, each with timescale installed. But logging is central, so it is very useful to include which database in the log lines. This works well using log_line_prefix and produces logs like:
2024-11-03 00:14:12.147 UTC [3375277] user_123@database_456 WARNING: there is already a transaction in progress
However this is not the case for background jobs. I miss the context of errors that might happen due to compression jobs for example.
Right now, I don't have any failures (which would be more interesting) but here is the start of a compression job for some context). I have no idea which database it applies to:
TimescaleDB version affected
2.13.1
PostgreSQL version used
15.4
What operating system did you use?
Ubuntu 22.04.3 LTS x64
What installation method did you use?
Deb/Apt
What platform did you run on?
Amazon Web Services (AWS)
Relevant log output and stack trace
No response
How can we reproduce the bug?
The text was updated successfully, but these errors were encountered: