Re: CSStorm occurred again by postgreSQL8.2
От | Tom Lane |
---|---|
Тема | Re: CSStorm occurred again by postgreSQL8.2 |
Дата | |
Msg-id | 13175.1154979751@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: CSStorm occurred again by postgreSQL8.2 (Alvaro Herrera <alvherre@commandprompt.com>) |
Ответы |
Re: CSStorm occurred again by postgreSQL8.2
|
Список | pgsql-hackers |
Alvaro Herrera <alvherre@commandprompt.com> writes: > Tom Lane wrote: >> I'm wondering about doing something similar to what >> TransactionIdIsInProgress does, ie, make use of the PGPROC lists >> of live subtransactions. > Well, that sounds awfully more expensive than setting > local-to-my-database Xmins as well as global (all databases) Xmins :-) Only when you've got a lot of subtransactions. The point of this discussion is to optimize for the few-or-none case. In any case, the problem with the local/global bit was that you'd be expending foreground-process cycles without any foreground-process return. Being able to use a snapshot without consulting pg_subtrans will certainly buy back some cycles... regards, tom lane
В списке pgsql-hackers по дате отправления: