aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2019-04-03 21:08:36 +0200
committerTomas Vondra <tomas.vondra@postgresql.org>2019-04-03 21:23:40 +0200
commitc50b3158bfd7fc8c2a0b2d2ede4415fd9859acd1 (patch)
tree308a26a57a5d48ef43f323b9dec7731c03868416 /src/backend/tcop/postgres.c
parentb0b39f72b9904bcb80f97b35837ccff1578aa4b8 (diff)
downloadpostgresql-c50b3158bfd7fc8c2a0b2d2ede4415fd9859acd1.tar.gz
postgresql-c50b3158bfd7fc8c2a0b2d2ede4415fd9859acd1.zip
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.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions