forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5e07d3d
committed
pgstat: fix small bug in pgstat_drop_relation().
Just after committing5891c7a, a test running with debug_discard_caches=1failed locally...pgstat_drop_relation() neither checked pgstat_should_count_relation() norcalled pgstat_prep_relation_pending(). With debug_discard_caches=1rel->pgstat_info wasn't set up, leading pg_stat_get_xact_tuples_inserted()spuriously still returning > 0 while in the transaction dropping the table.1 parent81ae9e6 commit5e07d3d
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
180 | 180 |
| |
181 | 181 |
| |
182 | 182 |
| |
183 |
| - | |
| 183 | + | |
184 | 184 |
| |
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
| 189 | + | |
| 190 | + | |
| 191 | + | |
189 | 192 |
| |
190 | 193 |
| |
191 | 194 |
| |
192 | 195 |
| |
193 |
| - | |
194 |
| - | |
| 196 | + | |
| 197 | + | |
195 | 198 |
| |
196 | 199 |
| |
197 | 200 |
| |
|
0 commit comments
Comments
(0)