mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Allow ALTER TABLE ... ALTER CONSTRAINT ... RENAME
Joachim Wieland
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.52 2006/02/04 23:03:19 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.53 2006/02/11 22:17:18 momjian Exp $ -->
|
||||
|
||||
<chapter id="ddl">
|
||||
<title>Data Definition</title>
|
||||
@@ -543,6 +543,10 @@ CREATE TABLE products (
|
||||
price numeric
|
||||
);
|
||||
</programlisting>
|
||||
Since <productname>PostgreSQL</productname> implements a UNIQUE constraint by
|
||||
means of an index, the above command will also create an index with the same
|
||||
name as the constraint. If you later on change the name of one of those, the
|
||||
name of the corresponding object will be changed automatically as well.
|
||||
</para>
|
||||
|
||||
<indexterm>
|
||||
|
||||
Reference in New Issue
Block a user