aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvalidate.c
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2019-07-05 00:45:20 +0200
committerTomas Vondra <tomas.vondra@postgresql.org>2019-07-05 01:32:49 +0200
commit08aa131c7a72195113ab3a7b191fe8014dd3a898 (patch)
tree13288e10e94c6faac05a2cea6d413db98e0cf9fa /src/backend/access/gist/gistvalidate.c
parent4d66285adc6bb4f9e4fd394d478d663cbccb5fc8 (diff)
downloadpostgresql-08aa131c7a72195113ab3a7b191fe8014dd3a898.tar.gz
postgresql-08aa131c7a72195113ab3a7b191fe8014dd3a898.zip
Simplify pg_mcv_list (de)serialization
The serialization format of multivariate MCV lists included alignment in order to allow direct access to part of the serialized data, but despite multiple fixes (see for example commits d85e0f366a and ea4e1c0e8f) this proved to be problematic. This commit abandons alignment in the serialized format, and just copies everything during deserialization. We now also track amount of memory needed after deserialization (including alignment), which allows us to deserialize the MCV list in a single pass. Bump catversion, as this affects contents of pg_statistic_ext_data. Backpatch to 12, where multi-column MCV lists were introduced. Author: Tomas Vondra Reviewed-by: Tom Lane Discussion: https://postgr.es/m/2201.1561521148@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/gist/gistvalidate.c')
0 files changed, 0 insertions, 0 deletions