mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	doc: fix ALTER DOMAIN domain_constraint to spell out options
It used to refer to CREATE DOMAIN, but CREATE DOMAIN allows NULL, while ALTER DOMAIN does not. Reported-by: elionescu@yahoo.com Discussion: https://postgr.es/m/172225092461.915373.6103973717483380183@wrigleys.postgresql.org Backpatch-through: 12
This commit is contained in:
		@@ -41,6 +41,11 @@ ALTER DOMAIN <replaceable class="parameter">name</replaceable>
 | 
				
			|||||||
    RENAME TO <replaceable class="parameter">new_name</replaceable>
 | 
					    RENAME TO <replaceable class="parameter">new_name</replaceable>
 | 
				
			||||||
ALTER DOMAIN <replaceable class="parameter">name</replaceable>
 | 
					ALTER DOMAIN <replaceable class="parameter">name</replaceable>
 | 
				
			||||||
    SET SCHEMA <replaceable class="parameter">new_schema</replaceable>
 | 
					    SET SCHEMA <replaceable class="parameter">new_schema</replaceable>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<phrase>where <replaceable class="parameter">domain_constraint</replaceable> is:</phrase>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[ CONSTRAINT <replaceable class="parameter">constraint_name</replaceable> ]
 | 
				
			||||||
 | 
					{ NOT NULL | CHECK (<replaceable class="parameter">expression</replaceable>) }
 | 
				
			||||||
</synopsis>
 | 
					</synopsis>
 | 
				
			||||||
 </refsynopsisdiv>
 | 
					 </refsynopsisdiv>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -79,8 +84,7 @@ ALTER DOMAIN <replaceable class="parameter">name</replaceable>
 | 
				
			|||||||
    <term><literal>ADD <replaceable class="parameter">domain_constraint</replaceable> [ NOT VALID ]</literal></term>
 | 
					    <term><literal>ADD <replaceable class="parameter">domain_constraint</replaceable> [ NOT VALID ]</literal></term>
 | 
				
			||||||
    <listitem>
 | 
					    <listitem>
 | 
				
			||||||
     <para>
 | 
					     <para>
 | 
				
			||||||
      This form adds a new constraint to a domain using the same syntax as
 | 
					      This form adds a new constraint to a domain.
 | 
				
			||||||
      <link linkend="sql-createdomain"><command>CREATE DOMAIN</command></link>.
 | 
					 | 
				
			||||||
      When a new constraint is added to a domain, all columns using that
 | 
					      When a new constraint is added to a domain, all columns using that
 | 
				
			||||||
      domain will be checked against the newly added constraint.  These
 | 
					      domain will be checked against the newly added constraint.  These
 | 
				
			||||||
      checks can be suppressed by adding the new constraint using the
 | 
					      checks can be suppressed by adding the new constraint using the
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user