Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"value too large" #54

Open
demon9514753 opened this issue Jan 15, 2022 · 5 comments
Open

"value too large" #54

demon9514753 opened this issue Jan 15, 2022 · 5 comments

Comments

@demon9514753
Copy link

I using postgreSQL to install UMCdb, when it copy "listitems.csv" and "numericitems.csv", the softwaer prompts error message: "psql:postgres-load-data-csv.sql:16: error: unable to extract files "listitems.csv" status: value too large" and "psql:postgres-load-data-csv.sql:18: error: unable to extract files "numericitems.csv" status: value too large".
What's wrong about it? What can I do to solve these problems?
Thank you !

@patrickthoral
Copy link
Member

Since I don't use psql directly: @peiyaoli Could you comment on this? I'm assuming you manually created the database schema and did not use BIGINT?

Alternatively, you could use this notebook from Python: https://github.com/AmsterdamUMC/AmsterdamUMCdb/blob/master/setup-amsterdamumcdb/setup-amsterdamumc.ipynb. That should not return that error.

@demon9514753
Copy link
Author

demon9514753 commented Jan 20, 2022 via email

@XiangBu
Copy link

XiangBu commented Feb 10, 2022

I using postgreSQL to install UMCdb, when it copy "listitems.csv" and "numericitems.csv", the softwaer prompts error message: "psql:postgres-load-data-csv.sql:16: error: unable to extract files "listitems.csv" status: value too large" and "psql:postgres-load-data-csv.sql:18: error: unable to extract files "numericitems.csv" status: value too large". What's wrong about it? What can I do to solve these problems? Thank you !

I doubt it might have something to do with the RAM.

@patrickthoral
Copy link
Member

@demon9514753 Were you able to fix this?

@wubuyun1987
Copy link

I have fixed it. The problem that “unable to extract files status: value too large" is because of a relatively small RAM. But it could be handled through compression by 7Z. Then the two csv files (listitems.csv 2.7G, numericitems.csv 78G) became smaller as 7z files (listitems.7z 0.16G, numericitems.7z 5.2G).
Then revise postgres-load-data-csv.sql as below:
"
-- listitems
\copy listitems FROM PROGRAM '7z e -so listitems.7z' DELIMITER ',' CSV HEADER NULL ''
-- numericitems
\copy numericitems FROM PROGRAM '7z e -so numericitems.7z' DELIMITER ',' CSV HEADER NULL ''
"
I have stalled UMCdb successfully using this method recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants