forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1852aea
Don't convert to and from floats in pg_dump.
Commit8f42718 improved performance by remembering relation statsas native types rather than issuing a new query for each relation.Using native types is fine for integers like relpages; but reltuplesis floating point. The commit controllled for that complexity by usingsetlocale(LC_NUMERIC, "C"). After that, Alexander Lakhin found aproblem in pg_strtof(), fixed in00d61a0.While we aren't aware of any more problems with that approach, itseems wise to just use a string the whole way for floating pointvalues, as Corey's original patch did, and get rid of thesetlocale(). Integers are still converted to native types to avoidwasting memory.Co-authored-by: Corey Huinker <corey.huinker@gmail.com>Discussion:https://postgr.es/m/3049348.1740855411@sss.pgh.pa.usDiscussion:https://postgr.es/m/560cca3781740bd69881bb07e26eb8f65b09792c.camel%40j-davis.com1 parent7fb8801 commit1852aea
2 files changed
+10
-14
lines changedLines changed: 9 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
525 | 525 |
| |
526 | 526 |
| |
527 | 527 |
| |
528 |
| - | |
529 |
| - | |
530 |
| - | |
531 | 528 |
| |
532 | 529 |
| |
533 | 530 |
| |
| |||
6816 | 6813 |
| |
6817 | 6814 |
| |
6818 | 6815 |
| |
| 6816 | + | |
| 6817 | + | |
6819 | 6818 |
| |
6820 | 6819 |
| |
6821 | 6820 |
| |
6822 |
| - | |
| 6821 | + | |
6823 | 6822 |
| |
6824 | 6823 |
| |
6825 | 6824 |
| |
| |||
6846 | 6845 |
| |
6847 | 6846 |
| |
6848 | 6847 |
| |
6849 |
| - | |
| 6848 | + | |
6850 | 6849 |
| |
6851 | 6850 |
| |
6852 | 6851 |
| |
| |||
7149 | 7148 |
| |
7150 | 7149 |
| |
7151 | 7150 |
| |
7152 |
| - | |
7153 | 7151 |
| |
7154 | 7152 |
| |
7155 | 7153 |
| |
| |||
7252 | 7250 |
| |
7253 | 7251 |
| |
7254 | 7252 |
| |
7255 |
| - | |
7256 |
| - | |
| 7253 | + | |
| 7254 | + | |
7257 | 7255 |
| |
7258 | 7256 |
| |
7259 | 7257 |
| |
| |||
7762 | 7760 |
| |
7763 | 7761 |
| |
7764 | 7762 |
| |
7765 |
| - | |
7766 | 7763 |
| |
7767 | 7764 |
| |
7768 | 7765 |
| |
| |||
7805 | 7802 |
| |
7806 | 7803 |
| |
7807 | 7804 |
| |
7808 |
| - | |
| 7805 | + | |
| 7806 | + | |
7809 | 7807 |
| |
7810 | 7808 |
| |
7811 | 7809 |
| |
| |||
10493 | 10491 |
| |
10494 | 10492 |
| |
10495 | 10493 |
| |
10496 |
| - | |
10497 | 10494 |
| |
10498 | 10495 |
| |
10499 | 10496 |
| |
| |||
10568 | 10565 |
| |
10569 | 10566 |
| |
10570 | 10567 |
| |
10571 |
| - | |
10572 |
| - | |
| 10568 | + | |
10573 | 10569 |
| |
10574 | 10570 |
| |
10575 | 10571 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
439 | 439 |
| |
440 | 440 |
| |
441 | 441 |
| |
442 |
| - | |
| 442 | + | |
443 | 443 |
| |
444 | 444 |
| |
445 | 445 |
| |
|
0 commit comments
Comments
(0)