Re: Rename or Re-Create Constraints? - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Rename or Re-Create Constraints?
Date
Msg-id 201104091530.18037.adrian.klaver@gmail.com
Whole thread Raw
In response to Re: Rename or Re-Create Constraints?  (Carlos Mennens <carlos.mennens@gmail.com>)
List pgsql-general
On Saturday, April 09, 2011 2:59:06 pm Carlos Mennens wrote:
>
>
> Is there a difference between an INDEX and a CONSTRAINT?

Oops forgot to add this to my previous reply.

The short version, an INDEX is one form of a CONSTRAINT. For the long version
look at the CREATE TABLE section of the docs. It shows the various CONSTRAINTS
available for both columns and tables i.e NOT NULL, FOREIGN KEY, etc

--
Adrian Klaver
adrian.klaver@gmail.com

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Rename or Re-Create Constraints?
Next
From: Gordon Shannon
Date:
Subject: Re: could not access status of transaction 1118722281