Re: NewBie - Mailing list pgsql-novice

From Devinder K Rajput
Subject Re: NewBie
Date
Msg-id OFB5617B4F.963E9977-ON86256CB7.00807B58@ipaper.com
Whole thread Raw
In response to NewBie  (Jérôme Kestener <jerome.kestener@yahoo.fr>)
List pgsql-novice

try:

psql <dbname>
\d <table_name>

The constraints will be listed at the bottom of the table.

HTH,

Devinder Rajput
Stores Division Corporate Offices
Chicago, IL
(773) 442-6474



"Jérôme Kestener" <jerome.kestener@yahoo.fr>
Sent by: pgsql-novice-owner@postgresql.org

01/21/2003 08:49 AM

       
        To:        pgsql-novice@postgresql.org
        cc:        
        Subject:        [NOVICE] NewBie



I want to find the primary key of a table, but i don't know  in witch system table this information is store. I suppose that is pg_constraint, but i can't acces to it . I get the message :

Relation "pg_constraint" does not exist

Could you help me.?

My version of postgresql is 7.2.2-16 under linux suse 8

 

pgsql-novice by date:

Previous
From: "Patrick Hatcher"
Date:
Subject: Long time Vacuum full
Next
From: "Chad Thompson"
Date:
Subject: Re: [May be Spam]NewBie