Search Postgresql Archives

Re: Rename or Re-Create Constraints?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux