Re: [HACKERS] Cache query (PREPARE/EXECUTE)

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: [HACKERS] Cache query (PREPARE/EXECUTE)
Дата
Msg-id
4650.951324791@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
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>
"Hiroshi Inoue"  writes:
> I think so.  The problem is that Node struct couldn't be freed safely
> due to the lack of reference count in its definition.  As far as I see
> plans could be destroyed only when the memory context in which
> they are placed are destroyed.

This is overly conservative.  It should be safe to destroy a plan tree
via freeObject() if it was created via copyObject() --- and that is
certainly how the plan would get into a permanent memory context.

Currently, rule definitions are leaked in CacheContext at relcache
flushes.  I plan to start freeing them via freeObject at the beginning
of the 7.1 development cycle --- I didn't want to risk it during the
runup to 7.0, but I believe it will work fine.
		regards, tom lane

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Ed Loehr
Дата:
FAQ