@@ -117,18 +117,18 @@ func (s DefaultPostgreSQLSchema) SelectQuery(params SelectQueryParams) (Query, e
117117 // -> CTE Scan on last_processed last_processed_2 (cost=0.00..0.02 rows=1 width=8) (actual time=0.000..0.001 rows=1 loops=1)
118118 // -> Index Scan using <index name> on <table name> (cost=0.42..14462.65 rows=80423 width=32) (actual time=184.348..184.348 rows=1 loops=1)
119119 // Index Cond: (transaction_id < pg_snapshot_xmin(pg_current_snapshot()))
120- //" Filter: (((transaction_id = $2) AND (""offset"" > $3)) OR (transaction_id > $4))"
120+ // Filter: (((transaction_id = $2) AND (""offset"" > $3)) OR (transaction_id > $4))"
121121 // Rows Removed by Filter: 241157
122122 // Planning Time: 8.242 ms
123123 // Execution Time: 185.214 ms
124124 //
125125 // Example performant query plan:
126126 // Limit (cost=3138.06..3138.06 rows=1 width=32) (actual time=0.579..0.580 rows=1 loops=1)
127127 // -> Sort (cost=3138.06..3339.11 rows=80423 width=32) (actual time=0.577..0.579 rows=1 loops=1)
128- //" Sort Key: <table name>.transaction_id, <table name>.""offset"""
128+ // Sort Key: <table name>.transaction_id, <table name>.""offset"""
129129 // Sort Method: top-N heapsort Memory: 25kB
130130 // -> Bitmap Heap Scan on <table name> (cost=85.36..1931.71 rows=80423 width=32) (actual time=0.231..0.530 rows=112 loops=1)
131- //" Recheck Cond: (((transaction_id = $2) AND (transaction_id < pg_snapshot_xmin(pg_current_snapshot())) AND (""offset"" > $3)) OR ((transaction_id > $4) AND (transaction_id < pg_snapshot_xmin(pg_current_snapshot()))))"
131+ // Recheck Cond: (((transaction_id = $2) AND (transaction_id < pg_snapshot_xmin(pg_current_snapshot())) AND (""offset"" > $3)) OR ((transaction_id > $4) AND (transaction_id < pg_snapshot_xmin(pg_current_snapshot()))))"
132132 // Heap Blocks: exact=26
133133 // CTE last_processed
134134 // -> LockRows (cost=0.14..8.17 rows=1 width=22) (actual time=0.186..0.188 rows=1 loops=1)
@@ -142,11 +142,11 @@ func (s DefaultPostgreSQLSchema) SelectQuery(params SelectQueryParams) (Query, e
142142 // -> CTE Scan on last_processed last_processed_2 (cost=0.00..0.02 rows=1 width=8) (actual time=0.000..0.000 rows=1 loops=1)
143143 // -> BitmapOr (cost=77.12..77.12 rows=1207 width=0) (actual time=0.219..0.219 rows=0 loops=1)
144144 // -> Bitmap Index Scan on <index name> (cost=0.00..4.43 rows=1 width=0) (actual time=0.208..0.208 rows=0 loops=1)
145- //" Index Cond: ((transaction_id = $2) AND (transaction_id < pg_snapshot_xmin(pg_current_snapshot())) AND (""offset"" > $3))"
145+ // Index Cond: ((transaction_id = $2) AND (transaction_id < pg_snapshot_xmin(pg_current_snapshot())) AND (""offset"" > $3))"
146146 // -> Bitmap Index Scan on <index name> (cost=0.00..32.48 rows=1206 width=0) (actual time=0.010..0.011 rows=112 loops=1)
147147 // Index Cond: ((transaction_id > $4) AND (transaction_id < pg_snapshot_xmin(pg_current_snapshot())))
148- //Planning Time: 1.365 ms
149- //Execution Time: 0.786 ms
148+ // Planning Time: 1.365 ms
149+ // Execution Time: 0.786 ms
150150
151151 selectQuery := `
152152 SELECT * FROM (
0 commit comments