Re: Slow temporary tables when using sync rep

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Slow temporary tables when using sync rep
Дата
Msg-id 4F8D462B.4080809@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Slow temporary tables when using sync rep  (Michael Nolan <htfoot@gmail.com>)
Ответы Re: Slow temporary tables when using sync rep  (Thom Brown <thom@linux.com>)
Список pgsql-hackers
On 17.04.2012 02:54, Michael Nolan wrote:
> On Mon, Apr 16, 2012 at 6:27 PM, Thom Brown<thom@linux.com>  wrote:
>
>> Hi,
>>
>> I've noticed that when using synchronous replication (on 9.2devel at
>> least), temporary tables become really slow:
>
> Since temporary tables are only present until the session ends (or
> possibly only until a commit), why are they replicated at all?

They're not replicated.

What happens is that we write the commit record if the transaction
accesses a temporary table, but we don't flush it. However, we still
wait until it's replicated to the standby. The obvious fix is to not
wait for that, see attached.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

Вложения

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

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Last gasp
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Slow temporary tables when using sync rep