Обсуждение: copy problem

Поиск
Список
Период
Сортировка

copy problem

От
Garrett Dangerfield
Дата:
Not sure if this is a bug or not, but it seems like one.

I am trying to load a data file into a table using the copy command.

When I do it on a small subset of the data (gotten using the Linux head command) it all works fine, but when I run it
onthe full dataset, I get the following error: 
ERROR:  repalloc: invalid request size 1073741824
WARNING:  AbortTransaction and not in in-progress state
message type 0x5a arrived from server while idle
server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.

The file I'm trying to load has 57,063,476 rows in it and the file is 8,786,592,005 bytes long.

Do I need to break the file I'm trying to load up, are there other options?

I'm running this on Redhat Shrike Linux 9 on an Intel 2.4GHz processor w/ 1.25G of RAM and I've got over 500GB of
storagetotal, with over 130GB free. 

Thanks,
Garrett Dangerfield.

Re: copy problem

От
Tom Lane
Дата:
Garrett Dangerfield <dangerimp@cox.net> writes:
> I am trying to load a data file into a table using the copy command.

> When I do it on a small subset of the data (gotten using the Linux head command) it all works fine, but when I run it
onthe full dataset, I get the following error: 
> ERROR:  repalloc: invalid request size 1073741824
> WARNING:  AbortTransaction and not in in-progress state

This looks like a corrupt-data sort of problem.  You could probably
identify a particular line of the COPY data as causing the failure,
if you were to break the source file down into smaller and smaller
segments.  Please do that and show us the offending line (as well
as your table definition and PG version...)

            regards, tom lane