Conversation
dimitri
left a comment
There was a problem hiding this comment.
First review: thanks for the work!
- can we share more code between the INSERT and the DELETE paths? it seems like we are duplicating code parts that are “infrastructure” (memory resizing, array elements handling, not “functional” bits)
- I'm not sure about using the WHERE ... OR ... approach for the DELETE statement with multiple target rows ; I think I would prefer a JOIN using VALUES
Yep.
Can you share how the query would look like? I tried constructing one, but it was making things more complicated. |
|
I could not think of any reasonable way to write a JOIN using VALUES. I stumbled upon a PostgreSQL docs page containing a note:
I wonder if it actually makes sense to add support for multi deletes. Can we run a simple benchmark to understand whether or not this adds value? |
|
Let me get back with the perf results, meanwhile @dimitri let us know your thoughts. |
Continuation of #465