On Sat, Mar 21, 2020 at 5:53 PM Andres Freund <and...@anarazel.de> wrote: > My comment is entirely unrelated to GIN, but about the way the delay > infrastructure manages state (in global vars).
The fact that ginInsertCleanup() uses "stats != NULL" to indicate whether it is being called from within VACUUM or not is surely relevant, or at least relevant to the issue that Mahendra just reported. shiftList() relies on this directly already. -- Peter Geoghegan