Oleg Bartunov <oleg@sai.msu.su> writes:
> it seems that was my fault, I didn't specified @nitems (sizes of tables)
> for all tables. Now it works fine.
> Tom, in case of my fault, why did postgres die ?
I don't know --- I don't see it here. I just ran your script as given,
and it worked. (It produced zero rows of output, since the missing
nitems values meant that no data was loaded into the last few tables ...
but there was no backend crash.)
Is it crashing because of running out of memory, or something else?
Can you provide a backtrace?
regards, tom lane