parse_oper cache
| От | Robert Haas |
|---|---|
| Тема | parse_oper cache |
| Дата | |
| Msg-id | 603c8f070912260053t505ec30fs15d230158ba976d5@mail.gmail.com обсуждение исходный текст |
| Ответы |
Re: parse_oper cache
|
| Список | 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 по дате отправления: