Re: Shared invalidation cache messages for temporary tables

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Shared invalidation cache messages for temporary tables
Дата
Msg-id AANLkTi=D7OQ-S1bYrJkTu+y4JR3o_2PV8R+EbFqriQXa@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Shared invalidation cache messages for temporary tables  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Shared invalidation cache messages for temporary tables  (Jim Nasby <jim@nasby.net>)
Список pgsql-hackers
On Mon, Mar 14, 2011 at 10:21 AM, Bruce Momjian <bruce@momjian.us> wrote:
>> Since your original email is fairly unclear about what you think the
>> problem is, it's a bit hard to speculate here, but like Simon, I don't
>> see any obvious problem here.  Maybe you're asking not so much about
>> inserts, updates, or deletes into temporary tables but about creating
>> and making modifications to them, which will generate catcache and
>> relcache flushes when the pg_class/pg_attribute entries are updated.
>> But I don't think those invalidation messages can be optimized away,
>> since other backends can access temporary tables of other sessions in
>> limited ways - for example, they can drop them.
>
> Sorry, yes that was my point --- should we be doing as much cache
> invalidation traffic for temporary tables as we are doing?  I think you
> are saying we are fine and there are no optimizations possible.

Yeah, I think so.  I mean, if you have a concrete example of this
causing a problem, then we can look into it, but my intuition is that
it's OK.  Programmers intuition are notoriously wrong, of course, so
we're all just shooting in the dark until we have something to
measure.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Better estimates of index correlation
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Better estimates of index correlation