Re: 8.4 COPY performance regression on Solaris

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 8.4 COPY performance regression on Solaris
Дата
Msg-id 6051.1245422332@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 8.4 COPY performance regression on Solaris  (Kenneth Marshall <ktm@rice.edu>)
Список pgsql-performance
Kenneth Marshall <ktm@rice.edu> writes:
> Looking at the XLogInsert() from 8.3 and 8.4, the 8.4
> version includes a call to RecoveryInProgress() at
> the top as well as a call to TRACE_POSTGRESQL_XLOG_INSERT().
> Could either of those have caused a context switch or
> cache flush resulting in worse performance.

Hmm.  TRACE_POSTGRESQL_XLOG_INSERT() should be a no-op (or at least,
none of the complainants have admitted to building with --enable-dtrace).
RecoveryInProgress() should be just a quick test of a local boolean,
so it's hard to believe that it costs anything noticeable; but if anyone
who is able to reproduce the problem wants to test this theory, try
taking out these lines

    /* cross-check on whether we should be here or not */
    if (RecoveryInProgress())
        elog(FATAL, "cannot make new WAL entries during recovery");

which are only a sanity check anyway.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: select max() much slower than select min()
Следующее
От: Greg Stark
Дата:
Сообщение: Re: select max() much slower than select min()