pg_store_plans
pg_store_plans copied to clipboard
Add a null-check for stored plan text in pg_store_plans_internal().
Variable pstr retrieved from function ptext_fetch() can be NULL due to various factors. Previously, pstr was passed as-is to each per-format process and used in strlen(), causing a crash when it was NULL.
This is a fix for #34 issue. https://github.com/ossc-db/pg_store_plans/issues/34