Re: data integrity and inserts - Mailing list pgsql-general

From Tom Lane
Subject Re: data integrity and inserts
Date
Msg-id 829.1102018788@sss.pgh.pa.us
Whole thread Raw
In response to Re: data integrity and inserts  ("Ian Harding" <iharding@tpchd.org>)
List pgsql-general
"Ian Harding" <iharding@tpchd.org> writes:
> The second is shorthand for the first.  you get to choose the index name
> in the first one.

IIRC you can force the index name in the second case too, by using
the fully unabbreviated CONSTRAINT syntax:

     ..., CONSTRAINT indexname UNIQUE(colname), ...

            regards, tom lane

pgsql-general by date:

Previous
From: "ON.KG"
Date:
Subject: Select Database
Next
From: Timothy Perrigo
Date:
Subject: Re: data integrity and inserts