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

From Tatsuo Ishii
Subject Re: Having query cache in core
Date
Msg-id 20180512.010121.1210207641838286593.t-ishii@sraoss.co.jp
Whole thread Raw
In response to Re: Having query cache in core  (Hartmut Holzgraefe <hartmut.holzgraefe@gmail.com>)
Responses Re: Having query cache in core  (Hartmut Holzgraefe <hartmut.holzgraefe@gmail.com>)
List pgsql-hackers
> that's almost actually how the MySQL query cache works: the query
> cache
> lookup kicks in even before the query is parsed, to get maximum gain
> from cache hits.
> 
> It does not just take the query text into account alone though,
> but also the current default database, protocol version,

> and character
> set/collation settings of the client session, asl all these may have
> an influence on the actual result values, too ...

Plus checking username is neccessary (otherwise any user could
retrieve a cache for a table lookup which is not permitted by other
users).

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: CK Tan
Date:
Subject: Re: Having query cache in core
Next
From: David Pacheco
Date:
Subject: Re: Compiler warnings with --enable-dtrace