RE: [HACKERS] Cache query (PREPARE/EXECUTE)
От
Hiroshi Inoue
Тема
RE: [HACKERS] Cache query (PREPARE/EXECUTE)
Дата
Msg-id
000201bf7ddb$1442dfa0$2801007e@tpf.co.jp
Ответ на
Re: [HACKERS] Cache query (PREPARE/EXECUTE) (Tom Lane)
Список
Дерево обсуждения
Cache query (PREPARE/EXECUTE) Karel Zak - Zakkr <zakkr@zf.jcu.cz>
Re: [HACKERS] Cache query (PREPARE/EXECUTE) Tom Lane <tgl@sss.pgh.pa.us>
RE: [HACKERS] Cache query (PREPARE/EXECUTE) "Hiroshi Inoue" <Inoue@tpf.co.jp>
RE: [HACKERS] Cache query (PREPARE/EXECUTE) Karel Zak - Zakkr <zakkr@zf.jcu.cz>
RE: [HACKERS] Cache query (PREPARE/EXECUTE) "Hiroshi Inoue" <Inoue@tpf.co.jp>
Re: [HACKERS] Cache query (PREPARE/EXECUTE) Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Cache query (PREPARE/EXECUTE) wieck@debis.com (Jan Wieck)
RE: [HACKERS] Cache query (PREPARE/EXECUTE) "Hiroshi Inoue" <Inoue@tpf.co.jp>
RE: [HACKERS] Cache query (PREPARE/EXECUTE) Karel Zak - Zakkr <zakkr@zf.jcu.cz>
Re: [HACKERS] Cache query (PREPARE/EXECUTE) wieck@debis.com (Jan Wieck)
Re: [HACKERS] Cache query (PREPARE/EXECUTE) Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Cache query (PREPARE/EXECUTE) wieck@debis.com (Jan Wieck)
Re: [HACKERS] Cache query (PREPARE/EXECUTE) Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Cache query (PREPARE/EXECUTE) wieck@debis.com (Jan Wieck)
[HACKERS] Cache query implemented Karel Zak - Zakkr <zakkr@zf.jcu.cz>
Re: [HACKERS] Cache query implemented Peter Eisentraut <peter_e@gmx.net>
Re: [HACKERS] Cache query implemented Karel Zak - Zakkr <zakkr@zf.jcu.cz>
Re: [HACKERS] Cache query implemented Karel Zak - Zakkr <zakkr@zf.jcu.cz>
RE: [HACKERS] Cache query implemented "Hiroshi Inoue" <Inoue@tpf.co.jp>
RE: [HACKERS] Cache query implemented Karel Zak - Zakkr <zakkr@zf.jcu.cz>
RE: [HACKERS] Cache query implemented "Hiroshi Inoue" <Inoue@tpf.co.jp>
RE: [HACKERS] Cache query implemented Karel Zak - Zakkr <zakkr@zf.jcu.cz>
Re: [HACKERS] Cache query (PREPARE/EXECUTE) Karel Zak - Zakkr <zakkr@zf.jcu.cz>
Re: [HACKERS] Cache query (PREPARE/EXECUTE) Karel Zak - Zakkr <zakkr@zf.jcu.cz>
Re: [HACKERS] Cache query (PREPARE/EXECUTE) Don Baccus <dhogaza@pacifier.com>
Re: [HACKERS] Cache query (PREPARE/EXECUTE) Karel Zak - Zakkr <zakkr@zf.jcu.cz>
Re: [HACKERS] Cache query (PREPARE/EXECUTE) The Hermit Hacker <scrappy@hub.org>
Re: [HACKERS] Cache query (PREPARE/EXECUTE) Karel Zak - Zakkr <zakkr@zf.jcu.cz>
> -----Original Message----- > From: owner-pgsql-hackers@postgreSQL.org > [mailto:owner-pgsql-hackers@postgreSQL.org]On Behalf Of Tom Lane > > Karel Zak - Zakkr writes: > > as I said, I tring implement PREPARE / EXECUTE command for user a > > controllable query cache (in TODO: Cache most recent query plan(s)). > > Looks cool. > > > The queryTree and planTree are save in hash table and in the > > TopMemoryContext (Is it good space for this cache?). > > Probably not. I'd suggest making a separate memory context for > this purpose --- they're cheap, and that gives you more control. > Look at the creation and use of CacheMemoryContext for an example. > Hmm,shoudn't per plan memory context be created ? Though current SPI stuff saves prepared plans to TopMemory Context,we couldn't remove them forever. It seems that SPI should also be changed in its implementation about saving plans. Note that freeObject() is unavailable at all. We would be able to free PREPAREd resources by destroying corrsponding memory context. If I recognize Jan's original idea correctly,he also suggested the same way. Regards. Hiroshi Inoue Inoue@tpf.co.jp
В списке pgsql-hackers по дате отправления