"Alon Goldshuv" <[EMAIL PROTECTED]> writes: > The following is a suggestion for optimizing the libpq COPY FROM call for > better performance. I submitted a similar suggestion awhile ago, but it > wasn't safe enough. This one is better.
It's not enough better, because it will still deadlock given a sufficiently large message-to-send. I don't think you can postpone the clearing-input action until after all the data is sent. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq