-
Notifications
You must be signed in to change notification settings - Fork 184
Add COPY FROM
support
#183
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
Comments
What exactly should the driver do? It's just an SQL command, right? You might want to consider pgjdbc/pgjdbc#1299 for the |
Thanks for the pointer - I am not sure I can really answer your question, if it should just be working then it might just be worth adding a note about in that in the documentation or adding a test for it. Part of the problem is I was comparing a few different drivers and so far the ones that I have tried have not supported it. After I found this one I could not find anything looking at the website / searching through the repository here. So based on my experience so far I assumed it was not supported. And yes, while a |
You'd help us by outlining your use-case and what you're trying to achieve to get a better impression of what's needed to make |
@mp911de If no one is working on this one, I'm more than willing to submit PR. |
Thanks for your support. Feel free to come up with a design proposal so we can discuss the overall direction before submitting a pull request. |
Sure, no problem, just give me a little to get to know the codebase better and figure out the proposal :) |
@igor-susic is there any progress on this issue? |
As per #183 (comment), we're happy to review proposals if you have a use case for a reactive |
The use case is a lot of data from a REST interface that has to be inserted into a Greenplum database. Greenplum and lots of insert statements is slow and I don't know where to start to implement this and don't have much time to figure out how the JDBC driver is currently doing it. |
It sounds as if the API would need to consume a |
Ok so I currently use this:
Then with the JDBC api I do something like:
This worked when we where not in the Reactive world 😄 . We switched to R2DBC some time ago and still used the PgConnection / CopyManager stuff. This works well when you accept at least some blocking code and not to many calls to the blocking endpoints. We use spring-data-r2dbc so I don't know the r2dbc-postgresql api very well. But looking at the code in this repo and how the postgresql driver implemented it I would think this works for the use cases described so far in this issue:
|
Thanks a lot. That helps to get an idea how this could work. |
Cleared the assignee/progress label as there hasn't been a movement. This ticket is up for grabs. |
Discussed with our team, this ticket is on our backlog scheduled for upcoming weeks. |
To make sure we're moving in the right direction for the implementation direction:
Work in progress can be found here: RWS-NL@aa4625a. |
Extract builder API to enable flexibility in providing copy data. Add safeguards to terminate copy data in cases of cancellation or errors. Reorder methods. [resolves #500][#183] Signed-off-by: Mark Paluch <[email protected]>
I have not been able to find anything in the documentation or through the github code-search, but does this driver support the
COPY FROM
command? Here is the official documentation of the command that I am talking about: https://www.postgresql.org/docs/current/sql-copy.htmlThe text was updated successfully, but these errors were encountered: