git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: b0b39f7) | patch
Reduce overhead of pg_mcv_list (de)serialization
Wed, 3 Apr 2019 19:08:36 +0000 (21:08 +0200)
Wed, 3 Apr 2019 19:23:40 +0000 (21:23 +0200)
commit c50b3158bfd7fc8c2a0b2d2ede4415fd9859acd1
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.
src/backend/statistics/mcv.c diff | blob | blame | history
src/include/catalog/catversion.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /