Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com> writes:
> We need more information from the OP about what they're doing.
Yeah. Those NOTICEs about "nnn edges processed" are not coming out of
anything in core Postgres; I'll bet whatever is producing those is at
fault (by trying to palloc indefinitely-large amounts of memory as a
single chunk).
regards, tom lane