feat: remove prepare operation in copy from#1085
Conversation
|
I think that step is necessary to handle native Go values like |
|
I have same question, I'm using extension(pipelinedb), there is no simple select from table that pgx tries to prepare statement. Removing prepare statements would help for me too. |
|
@mixmind You could drop down to the pgconn level and construct the copy stream manually. See https://pkg.go.dev/github.com/jackc/pgconn#PgConn.CopyFrom. |
|
@KennyChenFight any thought on Jack’s comment? |
|
Hi @jackc we are using CopyFrom in a write intensive application. I wanted to get rid of the prepare statement, would you accept a PR that exposes a new |
|
@alejandrodnm I don't mind an improvement to copy from performance, but I'm not convinced that a What about |
|
Sounds good @jackc , I'll give it a try. Thanks |
|
Is this PR still relevant? @KennyChenFight, can we close it? |
I think it's not necessary to use prepare operation to set value type before copy from operation. It would produce one RTT and slow down copy from operation.