|
| 1 | +<!-- |
| 2 | +doc/src/sgml/ref/set.sgml |
| 3 | +PostgreSQL documentation |
| 4 | +--> |
| 5 | + |
| 6 | +<refentry id="SQL-PGPOOL-SET-CACHE"> |
| 7 | + <indexterm zone="sql-pgpool-set-cache"> |
| 8 | + <primary>PGPOOL SET</primary> |
| 9 | + </indexterm> |
| 10 | + |
| 11 | + <refmeta> |
| 12 | + <refentrytitle>PGPOOL SET CACHE</refentrytitle> |
| 13 | + <manvolnum>1</manvolnum> |
| 14 | + <refmiscinfo>SQL - Language Statements</refmiscinfo> |
| 15 | + </refmeta> |
| 16 | + |
| 17 | + <refnamediv> |
| 18 | + <refname>PGPOOL SET CACHE</refname> |
| 19 | +<!-- |
| 20 | + <refpurpose>delete query cache</refpurpose> |
| 21 | +--> |
| 22 | + <refpurpose>クエリキャッシュを削除する</refpurpose> |
| 23 | + </refnamediv> |
| 24 | + |
| 25 | + <refsynopsisdiv> |
| 26 | + <synopsis> |
| 27 | + PGPOOL SET CACHE DELETE <replaceable class="PARAMETER">'query'</replaceable> |
| 28 | + </synopsis> |
| 29 | + </refsynopsisdiv> |
| 30 | + |
| 31 | + <refsect1> |
| 32 | +<!-- |
| 33 | + <title>Description</title> |
| 34 | +--> |
| 35 | + <title>説明</title> |
| 36 | + |
| 37 | + <para> |
| 38 | +<!-- |
| 39 | + The <command>PGPOOL SET CACHE DELETE</command> command deletes the |
| 40 | + <link linkend="runtime-in-memory-query-cache">query cache</link> |
| 41 | + previously created by the query. The query string must be exactly |
| 42 | + identical to the previous query, including |
| 43 | + trailing <literal>';'</literal>. Nevertheless if the query |
| 44 | + includes <literal>'</literal> (single quore), it needs to be |
| 45 | + prefixed by <literal>'</literal> like: |
| 46 | +--> |
| 47 | + <command>PGPOOL SET CACHE DELETE</command>コマンドは、以前のクエリで作成された<link linkend="runtime-in-memory-query-cache">クエリキャッシュ</link>を削除します。 |
| 48 | + クエリ文字列は、末尾の<literal>';'</literal>も含めて以前のクエリと完全に一致していなければなりません。 |
| 49 | + にもかかわらず、<literal>'</literal> (単一引用符)がクエリに含まれている場合は、以下のように<literal>'</literal>を前に追加する必要があります。 |
| 50 | + <programlisting> |
| 51 | +PGPOOL SET CACHE DELETE 'SELECT ''FOO'';'; |
| 52 | + </programlisting> |
| 53 | +<!-- |
| 54 | + This command is particularly useful for queries that are not |
| 55 | + invalidated by |
| 56 | + the <link linkend="guc-memqcache-auto-cache-invalidation">auto |
| 57 | + cache invalidation feature</link> because the query does not have |
| 58 | + any reference to tables. |
| 59 | +--> |
| 60 | + このコマンドはとりわけ、クエリ中にテーブル参照を含んでいないために<link linkend="guc-memqcache-auto-cache-invalidation">自動キャッシュ削除機能</link>で削除されないクエリに有用です。 |
| 61 | + </para> |
| 62 | + <para> |
| 63 | +<!-- |
| 64 | + If you do not remember the previous query, you can |
| 65 | + use <xref linkend="PCP-INVALIDATE-QUERY-CACHE"> to delete all the |
| 66 | + query cache including the cache you want to delete. However it |
| 67 | + requires the <productname>Pgpool-II</productname> admin privilege. |
| 68 | +--> |
| 69 | + 以前のクエリが思い出せない時は、<xref linkend="PCP-INVALIDATE-QUERY-CACHE">を使って、削除したいクエリキャッシュも含み、すべてのクエリキャッシュを削除することができます。 |
| 70 | + ただし、これは<productname>Pgpool-II</productname>の管理者権限が必要になります。 |
| 71 | + </para> |
| 72 | + <para> |
| 73 | +<!-- |
| 74 | + Upon successful deletion of the query cache, this command emits a |
| 75 | + notice message: |
| 76 | +--> |
| 77 | + クエリキャッシュの削除に成功すると、以下のNOTICEメッセージを表示します。 |
| 78 | + <programlisting> |
| 79 | +NOTICE: query cache deleted. query: "<literal>query string</literal>" |
| 80 | + </programlisting> |
| 81 | +<!-- |
| 82 | + If the cache does not exist or query cache is not enabled, it emits |
| 83 | + a notice message: |
| 84 | +--> |
| 85 | + クエリキャッシュが存在しないか、クエリキャッシュが無効の場合には、以下のNOTICEメッセージを表示します。 |
| 86 | + <programlisting> |
| 87 | +NOTICE: query cache does not exist for query: "<literal>query string</literal>" |
| 88 | + </programlisting> |
| 89 | + </para> |
| 90 | + </refsect1> |
| 91 | + |
| 92 | + <refsect1> |
| 93 | +<!-- |
| 94 | + <title>Examples</title> |
| 95 | +--> |
| 96 | + <title>例</title> |
| 97 | + |
| 98 | + <para> |
| 99 | +<!-- |
| 100 | + Accidentally created an unwanted query cache. Delete it by using |
| 101 | + the command. |
| 102 | +--> |
| 103 | + 間違って希望しないクエリキャッシュを作成してしまいました。 |
| 104 | + 以下のコマンドで削除します。 |
| 105 | + <programlisting> |
| 106 | +test=# /*FORCE QUERY CACHE*/SELECT current_timestamp; |
| 107 | + current_timestamp |
| 108 | +------------------------------- |
| 109 | + 2024-10-18 18:25:07.826423+09 |
| 110 | +(1 row) |
| 111 | + |
| 112 | +test=# PGPOOL SET CACHE DELETE '/*FORCE QUERY CACHE*/SELECT current_timestamp;'; |
| 113 | +NOTICE: query cache deleted. query: "/*FORCE QUERY CACHE*/SELECT current_timestamp;" |
| 114 | +SET |
| 115 | + </programlisting> |
| 116 | + </para> |
| 117 | + |
| 118 | + </refsect1> |
| 119 | + |
| 120 | + <refsect1> |
| 121 | +<!-- |
| 122 | + <title>See Also</title> |
| 123 | +--> |
| 124 | + <title>関連項目</title> |
| 125 | + |
| 126 | + <simplelist type="inline"> |
| 127 | + <member><xref linkend="PCP-INVALIDATE-QUERY-CACHE"></member> |
| 128 | + </simplelist> |
| 129 | + </refsect1> |
| 130 | + |
| 131 | +</refentry> |
0 commit comments