OSDN Git Service

Fix a bug of plan string inflation
authorKyotaro Horiguchi <horikyota.ntt@gmail.com>
Thu, 30 Jan 2020 07:42:09 +0000 (16:42 +0900)
committerKyotaro Horiguchi <horikyota.ntt@gmail.com>
Fri, 31 Jan 2020 01:47:35 +0000 (10:47 +0900)
commitf2c945e7eac6b5003befb25a26c61998c4179e98
treeffde5dd622c4d33fc4429c699da407a59a214718
parent4d665a5bbe0f719dd66aece0268721344068e10f
Fix a bug of plan string inflation

pg_store_plans() gave the length of raw plan string to encoding
function. Queries on the pg_store_plans view gets ERROR when (a)
inflated string contained unprintable byte sequence after the raw
length, or (b) the inflation made a string shorter. Fixed it.
pg_store_plans.c