Re: More efficient truncation of pg_stat_activity query strings

Tatsuo Ishii <ishii@sraoss.co.jp>

From: Tatsuo Ishii <ishii@sraoss.co.jp>
To: andres@anarazel.de
Cc: pgsql-hackers@postgresql.org
Date: 2017-09-12T07:53:49Z
Lists: pgsql-hackers
> read side.  I think that should work because all *server side* encodings
> store character lengths in the *first* byte of a multibyte character

What do you mean? I don't see such data in a multibyte string.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp


Commits

  1. Speedup pgstat_report_activity by moving mb-aware truncation to read side.