On 04/21/2014 12:26 PM, Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> writes:
>> I spent the last two hours poking arounds in the environment Andrew
>> provided and I was able to reproduce the issue, find a assert to
>> reproduce it much faster and find a possible root cause.
>
> Hmm ... is this the same thing Josh is reporting? If so, why the
> apparent connection with use of pg_stat_statements? Maybe that
> just changes the timing to make the race condition more likely?
Well, in Andrew's case it only happens if auto_explain is loaded.
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com