Re: Removing useless \. at the end of copy in pgbench

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Removing useless \. at the end of copy in pgbench
Дата
Msg-id 25801.1532742728@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Removing useless \. at the end of copy in pgbench  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Ответы Re: Removing useless \. at the end of copy in pgbench  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Список pgsql-hackers
Tatsuo Ishii <ishii@sraoss.co.jp> writes:
> While populating pgbench_account table by using COPY FROM STDIN,
> pgbench sends out "\." at the end of the copy data. However this is
> only necessary in the version 2 of frontend/backend protocol (i.e. the
> version 3 protocol does not need it). I think we can safely remove the
> code to save a few CPU cycle since we only support back to PostgreSQL
> 9.3 and the version 3 protocol has been supported since 7.4.

What exactly is the benefit of breaking compatibility with old servers?
Saving a few cycles during initial table population seems like it could
not be of interest to anyone.

            regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Removing useless \. at the end of copy in pgbench
Следующее
От: David Rowley
Дата:
Сообщение: Re: Speeding up INSERTs and UPDATEs to partitioned tables