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)
Список
Дерево обсуждения
Re: 8.4 COPY performance regression on Solaris Kenneth Marshall <ktm@rice.edu>
Re: 8.4 COPY performance regression on Solaris Tom Lane <tgl@sss.pgh.pa.us>
Kenneth Marshall 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 по дате отправления