Re: Having query cache in core - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: Having query cache in core
Date
Msg-id 20180511.212642.348816986505361564.t-ishii@sraoss.co.jp
Whole thread Raw
In response to Re: Having query cache in core  (CK Tan <cktan@vitessedata.com>)
Responses Re: Having query cache in core  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
Re: Having query cache in core  (Hartmut Holzgraefe <hartmut.holzgraefe@gmail.com>)
Re: Having query cache in core  (CK Tan <cktan@vitessedata.com>)
List pgsql-hackers
>> Thanks for the advice. But I rather thought about bypassing the raw
>> parser and the planner. i.e. use the query string (or its hash) as the
>> index of the query cache.
>>
> 
> I think you need to know which tables are involved and if they were
> modified.

Of course. While creating a cache entry for a SELECT, we need to
analyze it and extract tables involved in the SELECT. The information
should be stored along with the cache entry. If any of the tables were
modified, cache entries using the table must be removed.
(these are already implemented in Pgpool-II's in memory query cache)

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp


pgsql-hackers by date:

Previous
From: Konstantin Knizhnik
Date:
Subject: Re: [HACKERS] Surjective functional indexes
Next
From: Vladimir Sitnikov
Date:
Subject: Re: Having query cache in core