parse_oper cache

Поиск
Список
Период
Сортировка
От Robert Haas
Тема parse_oper cache
Дата
Msg-id 603c8f070912260053t505ec30fs15d230158ba976d5@mail.gmail.com
обсуждение исходный текст
Ответы Re: parse_oper cache  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sat, Nov 14, 2009 at 6:36 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> There's an example in parse_oper.c of a specialized cache that's about
> as complicated as this would be.

I was just taking a look at find_oper_cache_entry() and noticed
something odd.  When we discover that OprCacheHash == NULL, we make
sure that CacheMemoryContext is initialized before calling
hash_create().  But since we don't pass HASH_CONTEXT to hash_create(),
ISTM it's going to use TopMemoryContext anyhow.  utils/mmgr/README
indicates that the two contexts are basically equivalent anyway so I
don't think there's any visible breakage as a result of this, but it
sort of looks like an oversight.

...Robert


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

Предыдущее
От: tomas@tuxteam.de
Дата:
Сообщение: Re: creating index names automatically?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Removing pg_migrator limitations