Re: Libpq COPY optimization - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Libpq COPY optimization
Date
Msg-id 26259.1136749911@sss.pgh.pa.us
Whole thread Raw
In response to Libpq COPY optimization  ("Alon Goldshuv" <agoldshuv@greenplum.com>)
Responses Re: Libpq COPY optimization  ("Alon Goldshuv" <agoldshuv@greenplum.com>)
List pgsql-hackers
"Alon Goldshuv" <agoldshuv@greenplum.com> 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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: stat /etc/localtime 38000 times on startup?
Next
From: Tom Lane
Date:
Subject: Re: -HEAD compile failure on OpenBSD-current