From 36409bf2781f216316629cd839d07dbd2d89e509 Mon Sep 17 00:00:00 2001 From: Matt Nolf Date: Tue, 20 Jan 2026 17:42:00 +0000 Subject: [PATCH] update BackendXmin type to int64 to better map to PG BIGINT --- .../postgres/collector/query_samples.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/component/database_observability/postgres/collector/query_samples.go b/internal/component/database_observability/postgres/collector/query_samples.go index 1f644ae60b2..e4db07e3d33 100644 --- a/internal/component/database_observability/postgres/collector/query_samples.go +++ b/internal/component/database_observability/postgres/collector/query_samples.go @@ -91,7 +91,7 @@ type QuerySamplesInfo struct { State sql.NullString BackendType sql.NullString BackendXID sql.NullInt32 - BackendXmin sql.NullInt32 + BackendXmin sql.NullInt64 QueryID sql.NullInt64 Query sql.NullString BlockedByPIDs pq.Int64Array @@ -515,7 +515,7 @@ func (c *QuerySamples) buildQuerySampleLabelsWithEnd(state *SampleState, endAt s state.LastRow.BackendType.String, state.LastRow.State.String, state.LastRow.BackendXID.Int32, - state.LastRow.BackendXmin.Int32, + state.LastRow.BackendXmin.Int64, xactDuration, queryDuration, state.LastRow.QueryID.Int64, @@ -544,7 +544,7 @@ func (c *QuerySamples) buildWaitEventLabels(state *SampleState, we WaitEventOccu state.LastRow.BackendType.String, we.LastState, state.LastRow.BackendXID.Int32, - state.LastRow.BackendXmin.Int32, + state.LastRow.BackendXmin.Int64, we.LastWaitTime, we.WaitEventType, we.WaitEvent,