Re: CSStorm occurred again by postgreSQL8.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CSStorm occurred again by postgreSQL8.2
Дата
Msg-id 28167.1158241250@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: CSStorm occurred again by postgreSQL8.2  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: CSStorm occurred again by postgreSQL8.2  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> Yeah, I was just looking at that.  Removing useless entries from the
> child-xid list would presumably help him.  Considering we're not even
> formally in beta yet, I'm probably being too conservative to recommend
> we not touch it.

Actually ... wait a minute.  We do not assign an XID to a subtransaction
at all unless it writes a tuple to disk (see GetCurrentTransactionId
and its callers).  So this whole "optimization" idea is redundant.

I see a bug though, which is that RecordSubTransactionAbort() calls
GetCurrentTransactionId() before having verified that it needs to do
anything.  This means that we'll generate and then discard an XID
uselessly in a failed subxact that didn't touch disk.  Worth fixing,
but it doesn't look like this is Theo's problem.

Unless I'm missing something, Theo's problem must involve having done
tuple updates in 4.6M different subtransactions.
        regards, tom lane


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

Предыдущее
От: Theo Schlossnagle
Дата:
Сообщение: Re: Interesting tight loop
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Interesting tight loop