"Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> writes:
> CommitTransactionCommand() is executed at the end of vc_getrels()
> and vc_delhilowstats() is executed without StartTransactionCommand().
Oooh, good eye! I wonder how long that bug's been there?
I'm still inclined to remove that call to vc_delhilowstats, because it
seems like a global delete of statistics can't help but be a problem.
But if we keep it, you're dead right: it has to be inside a transaction.
regards, tom lane