Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update create_domain for 17.0 #3167

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions doc/src/sgml/ref/create_domain.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ CREATE DOMAIN <replaceable class="parameter">name</replaceable> [ AS ] <replacea
[ DEFAULT <replaceable>expression</replaceable> ]
[ <replaceable class="parameter">domain_constraint</replaceable> [ ... ] ]

<!--
<phrase>where <replaceable class="parameter">domain_constraint</replaceable> is:</phrase>
-->
<phrase>ここで<replaceable class="parameter">domain_constraint</replaceable>は、以下の通りです。</phrase>

[ CONSTRAINT <replaceable class="parameter">constraint_name</replaceable> ]
{ NOT NULL | NULL | CHECK (<replaceable class="parameter">expression</replaceable>) }
Expand Down Expand Up @@ -417,9 +420,10 @@ CREATE TABLE us_snail_addy (
<productname>PostgreSQL</productname> extension (see also <xref
linkend="sql-createtable-compatibility"/>).
-->
《機械翻訳》このコマンドの<literal>NOT NULL</literal>という構文は<productname>PostgreSQL</productname>の拡張です(同じことを書くための標準に準拠した方法は<literal>CHECK (VALUE IS NOT NULL)</literal>です。
しかし<xref linkend="sql-createdomain-notes"/>によると、実際にはそのような制約は避けた方が良いでしょう。
<literal>NULL</literal>の<quote>制約</quote>は<productname>PostgreSQL</productname>の拡張です(同じことを記述するための<xref linkend="sql-createtable-compatibility"/>も参照してください)。
このコマンドの<literal>NOT NULL</literal>という構文は<productname>PostgreSQL</productname>の拡張です。
(同じことを書くための標準に準拠した方法は<literal>CHECK (VALUE IS NOT NULL)</literal>です。
しかし<xref linkend="sql-createdomain-notes"/>に従って、実際にはそのような制約は避けるのが最善です。)
<literal>NULL</literal>の<quote>制約</quote>は<productname>PostgreSQL</productname>の拡張です(<xref linkend="sql-createtable-compatibility"/>も参照してください)。
</para>
</refsect1>

Expand Down