=?utf-8?q?PG_Bug_reporting_form?= <noreply(at)postgresql(dot)org> writes:> MemSet(BackendActivityBuffer, 0, size); //HERE
> Shouldn't BackendActivityBufferSize be accessed in the marked line instead> of size?
Yeah, I think you're right --- looks like a pretty obvious copy-and-pasteoversight. It's probably harmless as long aspgstat_track_activity_query_size is at least NAMEDATALEN, but it'snot good.
Thanks for reporting that!
regards, tom lane