aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/pgstatfuncs.c
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2019-04-16 00:01:39 +0200
committerTomas Vondra <tomas.vondra@postgresql.org>2019-04-16 00:01:39 +0200
commit3824ca30d162611fdaade403d3aec449fecd0924 (patch)
treee0d283b730858a43c31ccce486b20cd1d916b0ac /src/backend/utils/adt/pgstatfuncs.c
parent4b40e44f07c727c7a82b291d3b60098dd99f3f64 (diff)
downloadpostgresql-3824ca30d162611fdaade403d3aec449fecd0924.tar.gz
postgresql-3824ca30d162611fdaade403d3aec449fecd0924.zip
Fix pg_mcv_list deserialization
The memcpy() was copying type OIDs in the wrong direction, so the deserialized MCV list always had them as 0. This is mostly harmless except when printing the data in pg_mcv_list_items(), in which case it reported ERROR: cache lookup failed for type 0 Also added a simple regression test for pg_mcv_list_items() function, printing a single-item MCV list. Reported-By: Dean Rasheed Discussion: https://postgr.es/m/CAEZATCX6T0iDTTZrqyec4Cd6b4yuL7euu4=rQRXaVBAVrUi1Cg@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/pgstatfuncs.c')
0 files changed, 0 insertions, 0 deletions