- Increased default
monitor_max_run_time_seconds
to 60 seconds. - Added
monitor_statement_timeout_seconds
(defaults to 10 seconds) to limit query runtime. - Eagerly clear connection pools when a
ActiveRecord::StatementInvalid
orActiveRecord::ConnectionTimeoutError
is encountered to attempt to clear bad connections.
- Add
max_attempts
andmax_run_time
toPostgres::Vacuum::Jobs::MonitorJob
to avoid backing up the queue. The defaults are 1 attempt and 10 seconds, but they can be configured withmonitor_max_attempts
andmonitor_max_run_time_seconds
, respectively.
- Add support for Rails 7.1
- Requires activerecord >= 6.1
- Drop support for ruby < 3.0 and Rails < 6.1
- Fix epoch reporting in Postgres 14
- Add support for ruby 3.2 and Rails 7.0
- Drop support for ruby < 2.7 and Rails < 6.0.
- Add support for ruby 3.0
- Drop support for ruby < 2.6
- Add support for rails 6.1
- Query bug fix.
- Add events for connection idle time and state.
- Add the application name in the event.
- Report on queries that are being blocked by another process.
- Lower the default
LongTransactions
threshold from 1 hour to 5 minutes and make this configurable via thelong_running_transaction_threshold_seconds
setting.
- Add
wait_event_type
,transaction_id
andmin_transaction_id
toLongTransactions
events.
- Renamed
LongQueries
event toLongTransactions
. - Renamed
LongTransactions.query
toLongTransactions.most_recent_query
and added a transactionstate
attribute.
- Add rails 6 support.
- Monitor non-ActiveRecord::Base database connections
- Relax pg requirements