Skip site navigation (1) Skip section navigation (2)

RE: A patch that adds primary key and unique key support to psql's \d

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Patches" <pgsql-patches(at)postgresql(dot)org>
Subject: RE: A patch that adds primary key and unique key support to psql's \d
Date: 2001-05-28 02:11:00
Message-ID: ECEHIKNFIMMECLEBJFIGCEKKCAAA.chriskl@familyhealth.com.au (view raw or flat)
Thread:
Lists: pgsql-patches
Sample output that appears below the table attributes for \d:

Indicies: palm_buy_date_idx
          palm_user_date_idx
Primary Key: palm_buyers_pkey
Unique Key: palm_buyers_username
Constraint: "$1" ((sex = 'M'::bpchar) OR (sex = 'F'::bpchar))

Note that check constraint name now shown as well.  (Makes it a lot easier
to test inheritance support in ADD/DROP constraint :) )

Attached is a docs change for psql.

Chris

> -----Original Message-----
> From: Bruce Momjian [mailto:pgman(at)candle(dot)pha(dot)pa(dot)us]
> Sent: Monday, 28 May 2001 9:56 AM
> To: Christopher Kings-Lynne
> Cc: Patches
> Subject: Re: [PATCHES] A patch that adds primary key and unique key
> support to psql's \d
>
>
> Patch applied.
>
> Christopher, can you post a sample of the new output.  Also, does this
> affect the psql docs at all?
>
>
> Thanks.
>
>
> [ Charset ISO-8859-1 unsupported, converting... ]
> > This just breaks down the indices in to three groups:
> >
> > non-unique: stay as they were
> > unique and primary: become listed as primary keys
> > unique and non-primary: become listed as unique keys
> >
> > I also made it so that it shows the names of check constraints ie:
> >
> > Check: "$1" (a > 5)
> >
> > Chris
>
> [ Attachment, skipping... ]
>
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: Have you checked our extensive FAQ?
> >
> > http://www.postgresql.org/users-lounge/docs/faq.html
>
> --
>   Bruce Momjian                        |  http://candle.pha.pa.us
>   pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
>   +  If your life is a hard drive,     |  830 Blythe Avenue
>   +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
>

Attachment: psql-docs.diff
Description: application/octet-stream (1.0 KB)

In response to

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2001-05-28 04:27:09
Subject: Re: A patch that adds primary key and unique key support to psql's \d
Previous:From: Bruce MomjianDate: 2001-05-28 01:56:04
Subject: Re: A patch that adds primary key and unique key support to psql's \d

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group