Skip to content

Swapping Out Underlying Parquet Files #987

Answered by rebasedming
RalfNorthman asked this question in Q&A
Discussion options

You must be logged in to vote

Manually copying Parquet files into the Postgres directory won't work because we use delta logs on top of the Parquet files, and those logs are generated when you write SQL DML commands.

One way to upload Parquet files into Postgres is with a Parquet FDW, and then copy over the foreign Parquet table into an actual Postgres table. I've seen one or two of these extensions that you can try. Alternatively, if you already use Polars, then you can probably convert your Parquet files into CSV and COPY them into Postgres.

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@adriangb
Comment options

Answer selected by RalfNorthman
Comment options

You must be logged in to vote
1 reply
@philippemnoel
Comment options

Comment options

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