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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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 Content-Type Size
psql-docs.diff application/octet-stream 1.0 KB

In response to

Responses

Browse pgsql-patches by date

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