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

File upload for postgres databases does not let user specify duplicate key behavior #85

Open
tbantle22 opened this issue Dec 19, 2023 · 0 comments
Labels
enhancement New feature or request postgres Related to PostgreSQL databases

Comments

@tbantle22
Copy link
Collaborator

MySQL file upload uses a LOAD DATA statement to import file data into a table. It lets you specify whether you'd like to ignore or replace on duplicate key.

Postgres file upload uses a COPY FROM statement. It does not let you specify duplicate key behavior. There are workarounds like this, where we can import to a temporary table, and then specify on conflict behavior on upsert

@tbantle22 tbantle22 added enhancement New feature or request postgres Related to PostgreSQL databases labels Dec 19, 2023
@tbantle22 tbantle22 assigned tbantle22 and unassigned tbantle22 Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request postgres Related to PostgreSQL databases
Projects
None yet
Development

No branches or pull requests

1 participant