percona / pg_stat_monitor

Query Performance Monitoring Tool for PostgreSQL
https://docs.percona.com/pg-stat-monitor/
Other
477 stars 59 forks source link

PG-613: Postgresql crashes with Segmentation fault when query plan is enabled on large queries #395

Closed hqakhtar closed 1 year ago

hqakhtar commented 1 year ago

The return value for snprintf was incorrectly recorded as plan length. That's been resolved.

As part of this fix, we've also eliminated the possibility of a potential memory leak when plan text was being saved.