Skip to content

Commit 3349a57

Browse files
committed
by GitHub Actions [skip ci]
1 parent 08a3e29 commit 3349a57

5 files changed

Lines changed: 31 additions & 43 deletions

File tree

current/html/rules-privileges.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
これらの関数は<code class="literal">LEAKPROOF</code>属性を持っており、等価演算子など、単純で広く用いられる演算子も多く含まれます。
224224
利用者に対して不可視な行に対するこれら関数の呼び出しはいかなる情報も漏えいさせないため、プランナはこれらの関数をどのような場所でも安全に実行させる事ができます。
225225
さらに、引数をとらなかったり、セキュリティバリアビューから引数を渡されない関数は、ビューからデータを渡されることは決して無いため、プッシュダウンされるための<code class="literal">LEAKPROOF</code>をマークする必要はありません。
226-
一方、受け取った引数の値に応じてエラー(例えばオーバーフローやゼロ除算など)を発生させるかもしれない関数は leak-proof ではありません
226+
一方、受け取った引数の値に応じてエラー(例えばオーバーフローやゼロ除算など)を発生させるかもしれない関数はleak-proofではありません
227227
これがもしセキュリティ・ビューの条件句でフィルタリングされるより前に適用されたなら、不可視行に関する何か重要な情報を与える事ができてしまいます。
228228
</p><p>
229229
<span class="original">

current/html/rules-views.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@
690690
to represent the view in its capacity as the result relation.
691691
</span>
692692
もう一つの方法として、ビューに対するユーザ定義の<code class="literal">INSTEAD OF</code>トリガによってこれらのコマンドを処理できます(<a class="xref" href="sql-createtrigger.html" title="CREATE TRIGGER"><span class="refentrytitle">CREATE TRIGGER</span></a>を参照してください)。
693-
この場合、書き換えは少々違う形で行われます
693+
この場合、書き換えは少々違う形で行われます
694694
<code class="command">INSERT</code>に対しては、リライタはビューに全く何もせず、問い合わせの結果リレーションをそのままにします。
695695
<code class="command">UPDATE</code><code class="command">DELETE</code><code class="command">MERGE</code>に対しては、コマンドが更新、削除もしくはマージしようとする<span class="quote"><span class="quote">古い</span></span>行を生成するためにビュー問い合わせを展開する必要がまだあります。
696696
そのため、ビューは通常通り展開されますが、もう一つの展開されない範囲テーブル項目が結果リレーションとしてビューを表す問い合わせに追加されます。

current/html/sql-values.html

Lines changed: 27 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
a &lt;quote&gt;constant table&lt;/quote&gt; within a larger command, but it can be
1818
used on its own.
1919
</span>
20-
<code class="command">VALUES</code> は、値の式で指定された行あるいは行の集合を計算します。
21-
大きなコマンドの中で<span class="quote"><span class="quote">定数テーブル</span></span>を作成するために使用することが多いですが、
22-
それ単独で使用することも可能です。
20+
<code class="command">VALUES</code>は、値の式で指定された行あるいは行の集合を計算します。
21+
大きなコマンドの中で<span class="quote"><span class="quote">定数テーブル</span></span>を作成するために使用することが多いですが、それ単独で使用することも可能です。
2322
</p><p>
2423
<span class="original">
2524
When more than one row is specified, all the rows must have the same
@@ -29,10 +28,8 @@
2928
(see &lt;xref linkend="typeconv-union-case"/&gt;).
3029
</span>
3130
複数行を指定した場合は、すべての行の要素数が同じでなければなりません。
32-
できあがるテーブル列のデータ型を決定するには、
33-
明示的に指定されている型やその列に登場する式から推測できる型を組み合わせて使用します。
34-
これは <code class="literal">UNION</code> と同じ方式です
35-
(<a class="xref" href="typeconv-union-case.html" title="10.5. UNION、CASEおよび関連する構文">10.5</a> を参照ください)。
31+
できあがるテーブル列のデータ型を決定するには、明示的に指定されている型やその列に登場する式から推測できる型を組み合わせて使用します。
32+
これは<code class="literal">UNION</code>と同じ方式です(<a class="xref" href="typeconv-union-case.html" title="10.5. UNION、CASEおよび関連する構文">10.5</a>を参照してください)。
3633
</p><p>
3734
<span class="original">
3835
Within larger commands, &lt;command&gt;VALUES&lt;/command&gt; is syntactically allowed
@@ -43,9 +40,8 @@
4340
and &lt;literal&gt;OFFSET&lt;/literal&gt; clauses with a
4441
&lt;command&gt;VALUES&lt;/command&gt; command.
4542
</span>
46-
大きなコマンドの中において、
47-
<code class="command">SELECT</code> が文法上使える場所ならどこでも<code class="command">VALUES</code>を使用することができます。
48-
文法上は<code class="command">SELECT</code>と同じ扱いであるため、<code class="literal">ORDER BY</code><code class="literal">LIMIT</code>(、これと等価な<code class="literal">FETCH FIRST</code>)そして<code class="literal">OFFSET</code>句を<code class="command">VALUES</code>コマンドで使用することができます。
43+
大きなコマンドの中において、<code class="command">SELECT</code>が文法上使える場所ならどこでも<code class="command">VALUES</code>を使用することができます。
44+
文法上は<code class="command">SELECT</code>と同じ扱いであるため、<code class="literal">ORDER BY</code><code class="literal">LIMIT</code>(これと等価な<code class="literal">FETCH FIRST</code>)、そして<code class="literal">OFFSET</code>句を<code class="command">VALUES</code>コマンドで使用することができます。
4945
</p></div><div class="refsect1" id="id-1.9.3.185.6"><h2>パラメータ</h2><span class="original">
5046
&lt;title&gt;Parameters&lt;/title&gt;
5147
</span><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="replaceable"><code>expression</code></em></span></dt><dd><p>
@@ -58,13 +54,10 @@
5854
default value should be inserted. &lt;literal&gt;DEFAULT&lt;/literal&gt; cannot
5955
be used when &lt;command&gt;VALUES&lt;/command&gt; appears in other contexts.
6056
</span>
61-
定数あるいは式です。これを計算した結果が、
62-
表 (行セット) の中の指定した場所に挿入されます。
63-
<code class="command">VALUES</code> リストを <code class="command">INSERT</code> の最上位レベルで使用する場合は、
64-
<em class="replaceable"><code>expression</code></em><code class="literal">DEFAULT</code>
65-
で置き換えることができます。これは、その列のデフォルト値を挿入することを表します。
66-
他の場所で <code class="command">VALUES</code> を使用する場合には、
67-
<code class="literal">DEFAULT</code> は使用できません。
57+
定数あるいは式です。これを計算した結果が、表(行セット)の中の指定した場所に挿入されます。
58+
<code class="command">VALUES</code>リストを<code class="command">INSERT</code>の最上位レベルで使用する場合は、<em class="replaceable"><code>expression</code></em><code class="literal">DEFAULT</code>で置き換えることができます。
59+
これは、その列のデフォルト値を挿入することを表します。
60+
他の場所で<code class="command">VALUES</code>を使用する場合には、<code class="literal">DEFAULT</code>は使用できません。
6861
</p></dd><dt><span class="term"><em class="replaceable"><code>sort_expression</code></em></span></dt><dd><p>
6962
<span class="original">
7063
An expression or integer constant indicating how to sort the result
@@ -75,32 +68,32 @@
7568
in the &lt;xref linkend="sql-select"/&gt; documentation.
7669
</span>
7770
式あるいは整数の定数で、結果の行をソートする方法を表します。
78-
この式は、<code class="command">VALUES</code> の結果の列を <code class="literal">column1</code><code class="literal">column2</code>などのように参照することができます。
79-
詳細は<a class="xref" href="sql-select.html" title="SELECT"><span class="refentrytitle">SELECT</span></a>文書の<a class="xref" href="sql-select.html#SQL-ORDERBY" title="ORDER BY句">ORDER BY句</a>を参照ください
71+
この式は、<code class="command">VALUES</code>の結果の列を<code class="literal">column1</code><code class="literal">column2</code>などのように参照することができます。
72+
詳細は<a class="xref" href="sql-select.html" title="SELECT"><span class="refentrytitle">SELECT</span></a>文書の<a class="xref" href="sql-select.html#SQL-ORDERBY" title="ORDER BY句">ORDER BY句</a>を参照してください
8073
</p></dd><dt><span class="term"><em class="replaceable"><code>operator</code></em></span></dt><dd><p>
8174
<span class="original">
8275
A sorting operator. For details see
8376
&lt;xref linkend="sql-orderby"/&gt;
8477
in the &lt;xref linkend="sql-select"/&gt; documentation.
8578
</span>
8679
ソート用の演算子です。
87-
詳細は<a class="xref" href="sql-select.html" title="SELECT"><span class="refentrytitle">SELECT</span></a>文書の<a class="xref" href="sql-select.html#SQL-ORDERBY" title="ORDER BY句">ORDER BY句</a>を参照ください
80+
詳細は<a class="xref" href="sql-select.html" title="SELECT"><span class="refentrytitle">SELECT</span></a>文書の<a class="xref" href="sql-select.html#SQL-ORDERBY" title="ORDER BY句">ORDER BY句</a>を参照してください
8881
</p></dd><dt><span class="term"><em class="replaceable"><code>count</code></em></span></dt><dd><p>
8982
<span class="original">
9083
The maximum number of rows to return. For details see
9184
&lt;xref linkend="sql-limit"/&gt;
9285
in the &lt;xref linkend="sql-select"/&gt; documentation.
9386
</span>
9487
返す行の最大数です。
95-
詳細は<a class="xref" href="sql-select.html" title="SELECT"><span class="refentrytitle">SELECT</span></a>文書の<a class="xref" href="sql-select.html#SQL-LIMIT" title="LIMIT句">LIMIT句</a>を参照ください
88+
詳細は<a class="xref" href="sql-select.html" title="SELECT"><span class="refentrytitle">SELECT</span></a>文書の<a class="xref" href="sql-select.html#SQL-LIMIT" title="LIMIT句">LIMIT句</a>を参照してください
9689
</p></dd><dt><span class="term"><em class="replaceable"><code>start</code></em></span></dt><dd><p>
9790
<span class="original">
9891
The number of rows to skip before starting to return rows.
9992
For details see &lt;xref linkend="sql-limit"/&gt;
10093
in the &lt;xref linkend="sql-select"/&gt; documentation.
10194
</span>
10295
結果を返す際に読み飛ばす行数です。
103-
詳細は<a class="xref" href="sql-select.html" title="SELECT"><span class="refentrytitle">SELECT</span></a>文書の<a class="xref" href="sql-select.html#SQL-LIMIT" title="LIMIT句">LIMIT句</a>を参照ください
96+
詳細は<a class="xref" href="sql-select.html" title="SELECT"><span class="refentrytitle">SELECT</span></a>文書の<a class="xref" href="sql-select.html#SQL-LIMIT" title="LIMIT句">LIMIT句</a>を参照してください
10497
</p></dd></dl></div></div><div class="refsect1" id="id-1.9.3.185.7"><h2>注釈</h2><span class="original">
10598
&lt;title&gt;Notes&lt;/title&gt;
10699
</span><p>
@@ -112,19 +105,17 @@
112105
target table, and need not be inferred by scanning the &lt;command&gt;VALUES&lt;/command&gt;
113106
list), so it can handle larger lists than are practical in other contexts.
114107
</span>
115-
<code class="command">VALUES</code> で大量の行を扱うことは避けるべきです。
108+
<code class="command">VALUES</code>で大量の行を扱うことは避けるべきです。
116109
メモリ不足や性能の劣化を生じさせる可能性があります。
117-
<code class="command">VALUES</code><code class="command">INSERT</code> の中で使用する場合は特別です。
118-
(列の型は <code class="command">INSERT</code> 先のテーブルからわかるので、
119-
<code class="command">VALUES</code> のリストを調べて型を推測する必要がないからです)
120-
そのため、他の場面に比べて大きなリストを扱っても実用に耐えます。
110+
<code class="command">VALUES</code><code class="command">INSERT</code>の中で使用する場合は特別です。
111+
(列の型は<code class="command">INSERT</code>先のテーブルからわかるので、<code class="command">VALUES</code>のリストを調べて型を推測する必要がないからです)そのため、他の場面に比べて大きなリストを扱っても実用に耐えます。
121112
</p></div><div class="refsect1" id="id-1.9.3.185.8"><h2></h2><span class="original">
122113
&lt;title&gt;Examples&lt;/title&gt;
123114
</span><p>
124115
<span class="original">
125116
A bare &lt;command&gt;VALUES&lt;/command&gt; command:
126117
</span>
127-
必要最小限の <code class="command">VALUES</code> コマンドはこのようになります。
118+
必要最小限の<code class="command">VALUES</code>コマンドはこのようになります。
128119

129120
</p><pre class="programlisting">
130121
VALUES (1, 'one'), (2, 'two'), (3, 'three');
@@ -149,8 +140,8 @@
149140
More usually, &lt;command&gt;VALUES&lt;/command&gt; is used within a larger SQL command.
150141
The most common use is in &lt;command&gt;INSERT&lt;/command&gt;:
151142
</span>
152-
通常は、<code class="command">VALUES</code> は大きな SQL コマンドの内部で使用します
153-
最もよくあるのは、<code class="command">INSERT</code> での使用です。
143+
通常は、<code class="command">VALUES</code>は大きなSQLコマンドの内部で使用します
144+
最もよくあるのは、<code class="command">INSERT</code>での使用です。
154145

155146
</p><pre class="programlisting">
156147
INSERT INTO films (code, title, did, date_prod, kind)
@@ -162,8 +153,7 @@
162153
can be &lt;literal&gt;DEFAULT&lt;/literal&gt; to indicate that the column default
163154
should be used here instead of specifying a value:
164155
</span>
165-
<code class="command">INSERT</code> 内で使用する場合には、<code class="command">VALUES</code>
166-
のリストに <code class="literal">DEFAULT</code> を指定することができます。
156+
<code class="command">INSERT</code>内で使用する場合には、<code class="command">VALUES</code>のリストに<code class="literal">DEFAULT</code>を指定することができます。
167157
これは、値を具体的に指定するのではなくその列のデフォルトを使用することを表します。
168158

169159
</p><pre class="programlisting">
@@ -176,8 +166,8 @@
176166
&lt;command&gt;VALUES&lt;/command&gt; can also be used where a sub-&lt;command&gt;SELECT&lt;/command&gt; might
177167
be written, for example in a &lt;literal&gt;FROM&lt;/literal&gt; clause:
178168
</span>
179-
<code class="command">VALUES</code> は、副<code class="command">SELECT</code>が書ける場所に使用することができます。
180-
例えば <code class="literal">FROM</code> 句の中などでも使えます。
169+
<code class="command">VALUES</code>は、副<code class="command">SELECT</code>が書ける場所に使用することができます。
170+
例えば<code class="literal">FROM</code>句の中などでも使えます。
181171

182172
</p><pre class="programlisting">
183173
SELECT f.*
@@ -199,7 +189,7 @@
199189
these names might be different in other database systems.)
200190
</span>
201191
<code class="command">VALUES</code><code class="literal">FROM</code>句の中で使用する場合には、<code class="literal">AS</code>句が必須となることに注意しましょう。
202-
これは <code class="command">SELECT</code> の場合と同様です。
192+
これは<code class="command">SELECT</code>の場合と同様です。
203193
<code class="literal">AS</code>句ですべての列の名前を指定する必要はありませんが、指定しておくことをお勧めします。
204194
<code class="command">VALUES</code>のデフォルトの列名は、<span class="productname">PostgreSQL</span>においては<code class="literal">column1</code><code class="literal">column2</code>のようになります。
205195
しかし、他のデータベースシステムでは異なるかもしれません。)
@@ -211,8 +201,7 @@
211201
the correct data type. If the entries are all quoted literal constants,
212202
coercing the first is sufficient to determine the assumed type for all:
213203
</span>
214-
<code class="command">VALUES</code><code class="command">INSERT</code> の中で使用する場合は、
215-
値の型が挿入先列のデータ型に自動変換されます。
204+
<code class="command">VALUES</code><code class="command">INSERT</code>の中で使用する場合は、値の型が挿入先列のデータ型に自動変換されます。
216205
それ以外の場面で使用する際には、正しいデータ型を指定する必要があるかもしれません。
217206
値がすべて引用符付きのリテラル定数である場合は、最初の値にだけ型を指定しておけば十分です。
218207

@@ -227,8 +216,7 @@
227216
query as shown above. The list of scalars method requires less writing
228217
and is often more efficient.
229218
</span>
230-
単に <code class="literal">IN</code> を試したいのなら、上のような <code class="command">VALUES</code> クエリを使用するよりも
231-
<code class="literal">IN</code><a class="link" href="functions-comparisons.html#FUNCTIONS-COMPARISONS-IN-SCALAR" title="9.25.1. IN">スカラリスト</a>形式を使用するほうがよいでしょう。
219+
単に<code class="literal">IN</code>を試したいのなら、上のような<code class="command">VALUES</code>クエリを使用するよりも<code class="literal">IN</code><a class="link" href="functions-comparisons.html#FUNCTIONS-COMPARISONS-IN-SCALAR" title="9.25.1. IN">スカラリスト</a>形式を使用するほうがよいでしょう。
232220
スカラリストの方法の方が記述量が減りますし、たいていはより効率的になります。
233221
</p></div></div><div class="refsect1" id="id-1.9.3.185.9"><h2>互換性</h2><span class="original">
234222
&lt;title&gt;Compatibility&lt;/title&gt;

current/postgres-A4.pdf

-7 Bytes
Binary file not shown.

index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ layout: default
77

88
## 最新
99

10-
last-updated: 2025-06-20 04:25:48 JST
10+
last-updated: 2025-06-21 04:27:16 JST
1111

1212
### 最新 PostgreSQL
1313

@@ -19,7 +19,7 @@ last-updated: 2025-06-20 04:25:48 JST
1919

2020
| HTML (オンライン) | PDF | EPUB | man | 更新日 |
2121
|:---------------------------|:---------------------------------------------:|:--------------------------------------------:|:---:|:----------:|
22-
| [17.5](current/html) | [PDF](current/postgres-A4.pdf) | | | <em id="update">2025-06-20</em> |
22+
| [17.5](current/html) | [PDF](current/postgres-A4.pdf) | | | <em id="update">2025-06-21</em> |
2323
| [17.0](jpug-doc/17.0/html/) | [PDF](jpug-doc/17.0/postgresql-17.0-A4.pdf) | [EPUB](jpug-doc/17.0/postgresql-17.0.epub) | [man.tar.gz](jpug-doc/17.0/man.tar.gz) | 2025-05-21 |
2424

2525
### PostgreSQL 16

0 commit comments

Comments
 (0)