[pgpool-hackers: 4479] Comment to force query cache

Tatsuo Ishii ishii at postgresql.org
Fri Jul 5 11:44:24 JST 2024


There is a feature request from a user.

https://github.com/pgpool/pgpool2/issues/56

That is, to allow to use SQL comment to force to create a query cache
entry. We already have /*NO QUERY CACHE*/ comment, which
unconditionally disabling query cache. The request is just opposite. I
think this is a useful feature because in some cases there's no
workaround to create query cache. I proposed a workaround to use view,
but it has its own downside. See the issue for more details.

So my proposal is to support a new comment "/*FORCE QUERY CACHE*/". If
a query starts with the comment, the query will be cached
unconditionally. Patch attached. Comments and suggestions are welcome.

Best reagards,
--
Tatsuo Ishii
SRA OSS LLC
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: force_cache.patch
Type: text/x-patch
Size: 4102 bytes
Desc: not available
URL: <http://www.pgpool.net/pipermail/pgpool-hackers/attachments/20240705/ed1830f1/attachment.bin>


More information about the pgpool-hackers mailing list