"Ed L." <pgsql(at)bluepolka(dot)net> writes:
> The table has 3 columns, one of which contains huge text values. Yes, barf.
That shouldn't matter --- ANALYZE actually deliberately ignores
very-wide values so as not to run out of memory.
You sure you haven't changed default_statistics_target?
I'd think you'd uncovered a memory leak in ANALYZE, except that somebody
else would have found any such thing before now. Which PG version are
you using exactly?
regards, tom lane