David Richter <D(dot)Richter(at)DKFZ-heidelberg(dot)de> writes:
> I used a self written funtion in plpgsql with a database of 2 Gigabyte
> size. My server has 384 Megabytes of RAM.
> So I got this error by calling the following function:
> psql:restructure.sql:139: FATAL 1: Memory exhausted in AllocSetAlloc()
Try updating to Postgres 7.1.
regards, tom lane