"Tomeh, Husam" <htomeh(at)firstam(dot)com> writes:
> Any idea why I'm getting out-of-memory error?
Looks like a corrupt-data problem, but it's hard to tell any more than
that with only this much info. If it affects all tables then the
corruption is probably in a system catalog rather than every one of
the tables. You might try setting a breakpoint at errfinish to get
a stack trace from the point of the error; that would give us at least
a bit of a clue where the problem is.
regards, tom lane