Customizable log line prefix for Postgres databases
You can now customize the log_line_prefix parameter for your Postgres databases. This setting controls the prefix format for each PostgreSQL log line, allowing you to include useful metadata like database name (%d), user name (%u), process ID (%p), and timestamp (%m) in your logs.
By default, PlanetScale Postgres uses %m [%p] as the log line prefix, which includes the timestamp and process ID. If you need additional context in your logs — for example, to identify which database or user generated a log entry — you can now adjust this through the Parameters tab on your database's Clusters page.
The system always prepends [POSTGRES] to your configured prefix.