I wrote:> Looking around, there are a couple of places outside commands/analyze.c> that are making the same mistake, so this patch isn't complete, but it> illustrates what needs to be done.
Here's a more complete patch.
regards, tom lane