mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Reduce overhead of pg_mcv_list (de)serialization
Commit ea4e1c0e8f
resolved issues with memory alignment in serialized
pg_mcv_list values, but it required copying data to/from the varlena
buffer during serialization and deserialization. As the MCV lits may
be fairly large, the overhead (memory consumption, CPU usage) can get
rather significant too.
This change tweaks the serialization format so that the alignment is
correct with respect to the varlena value, and so the parts may be
accessed directly without copying the data.
Catversion bump, as it affects existing pg_statistic_ext data.
This commit is contained in:
@@ -53,6 +53,6 @@
|
||||
*/
|
||||
|
||||
/* yyyymmddN */
|
||||
#define CATALOG_VERSION_NO 201904021
|
||||
#define CATALOG_VERSION_NO 201904031
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user