Skip to content

Inserting large object in Postgresql using jackc/pgx returns "out of memory (SQLSTATE 54000)" #1283

Discussion options

You must be logged in to vote

Thanks @jackc .
The obj maintains the current pointer to the end of the previous write.
So now, I read the file in chunks and write a chunk at a time with the same obj object. Repeating it till the EOF for the file is reached.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by swapnildaga17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants