Dean Rasheed <dean.a.rash...@gmail.com> writes: > I had a go at reproducing this. I wasn't able to produce the reported > failure, but I can reliably produce an Assert failure that may be > related by doing a VACUUM FULL simultaneously with an ANALYZE that is > generating extended stats, which produces: > ... > It looks to me as though the problem is that statext_store() needs to > take its lock on pg_statistic_ext_data *before* searching for the > stats tuple to update.
Hmm, yeah, that seems like clearly a bad idea. > It's late here, so I haven't worked up a patch yet, but it looks > pretty straightforward. I can take care of it. regards, tom lane