forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf478d12
Use float8 datatype for percentiles in pg_walinspect stat functions
pg_walinspect uses datatype double (double precision floating pointnumber) for WAL stats percentile calculations and expose them viafloat4 (single precision floating point number), which an unnecessaryloss of precision and confusing. Even though, it's harmless that way,let's use float8 (double precision floating-point number) to be insync with what pg_walinspect does internally and what it exposes tothe users. This seems to be the pattern used elsewhere in the code.Reported-by: Peter EisentrautAuthor: Bharath RupireddyReviewed-by: Peter EisentrautDiscussion:https://www.postgresql.org/message-id/36ee692b-232f-0484-ce94-dc39d82021ad%40enterprisedb.com1 parent6c06fdd commitf478d12
File tree
3 files changed
+20
-20
lines changed- contrib/pg_walinspect
- doc/src/sgml
3 files changed
+20
-20
lines changedLines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 |
| - | |
| 83 | + | |
84 | 84 |
| |
85 |
| - | |
| 85 | + | |
86 | 86 |
| |
87 |
| - | |
| 87 | + | |
88 | 88 |
| |
89 |
| - | |
| 89 | + | |
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
105 |
| - | |
| 105 | + | |
106 | 106 |
| |
107 |
| - | |
| 107 | + | |
108 | 108 |
| |
109 |
| - | |
| 109 | + | |
110 | 110 |
| |
111 |
| - | |
| 111 | + | |
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
430 | 430 |
| |
431 | 431 |
| |
432 | 432 |
| |
433 |
| - | |
| 433 | + | |
434 | 434 |
| |
435 |
| - | |
| 435 | + | |
436 | 436 |
| |
437 |
| - | |
| 437 | + | |
438 | 438 |
| |
439 |
| - | |
| 439 | + | |
440 | 440 |
| |
441 | 441 |
| |
442 | 442 |
| |
|
Lines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 |
| - | |
| 167 | + | |
168 | 168 |
| |
169 |
| - | |
| 169 | + | |
170 | 170 |
| |
171 |
| - | |
| 171 | + | |
172 | 172 |
| |
173 |
| - | |
| 173 | + | |
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
| |||
241 | 241 |
| |
242 | 242 |
| |
243 | 243 |
| |
244 |
| - | |
| 244 | + | |
245 | 245 |
| |
246 |
| - | |
| 246 | + | |
247 | 247 |
| |
248 |
| - | |
| 248 | + | |
249 | 249 |
| |
250 |
| - | |
| 250 | + | |
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
|
0 commit comments
Comments
(0)