forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3824ca3
committed
Fix pg_mcv_list deserialization
The memcpy() was copying type OIDs in the wrong direction, so thedeserialized MCV list always had them as 0. This is mostly harmlessexcept when printing the data in pg_mcv_list_items(), in which caseit reported ERROR: cache lookup failed for type 0Also added a simple regression test for pg_mcv_list_items() function,printing a single-item MCV list.Reported-By: Dean RasheedDiscussion:https://postgr.es/m/CAEZATCX6T0iDTTZrqyec4Cd6b4yuL7euu4=rQRXaVBAVrUi1Cg@mail.gmail.com1 parent4b40e44 commit3824ca3
File tree
3 files changed
+20
-1
lines changed- src
- backend/statistics
- test/regress
- expected
- sql
3 files changed
+20
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
905 | 905 |
| |
906 | 906 |
| |
907 | 907 |
| |
908 |
| - | |
| 908 | + | |
909 | 909 |
| |
910 | 910 |
| |
911 | 911 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
717 | 717 |
| |
718 | 718 |
| |
719 | 719 |
| |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
720 | 731 |
| |
721 | 732 |
| |
722 | 733 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
411 | 411 |
| |
412 | 412 |
| |
413 | 413 |
| |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
414 | 422 |
| |
415 | 423 |
| |
416 | 424 |
| |
|
0 commit comments
Comments
(0)