forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit08aa131
committed
Simplify pg_mcv_list (de)serialization
The serialization format of multivariate MCV lists included alignment inorder to allow direct access to part of the serialized data, but despitemultiple fixes (see for example commitsd85e0f3 andea4e1c0) thisproved to be problematic.This commit abandons alignment in the serialized format, and just copieseverything during deserialization. We now also track amount of memoryneeded after deserialization (including alignment), which allows us todeserialize 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 VondraReviewed-by: Tom LaneDiscussion:https://postgr.es/m/2201.1561521148@sss.pgh.pa.us1 parent4d66285 commit08aa131
File tree
3 files changed
+183
-111
lines changed- src
- backend/statistics
- include
- catalog
- statistics
3 files changed
+183
-111
lines changed0 commit comments
Comments
(0)