Re: dropping anonymous constraints

From: Doug McNaught <doug(at)wireboard(dot)com>
To: Ben Liblit <liblit(at)eecs(dot)berkeley(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: dropping anonymous constraints
Date: 2002-07-17 14:09:01
Message-ID: m3d6tmv43m.fsf@varsoon.wireboard.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ben Liblit <liblit(at)eecs(dot)berkeley(dot)edu> writes:

> Tom Lane wrote:
> > Try psql's \d command to check out constraint names.
>
> That did it. Thank you for the speedy reply.
>
> (I can't help but shake my head at the design of ALTER TABLE's constraint
> manipulation facilities, whose non-orthogonality requires one to step
> outside the language and use things like "\d" to accomplish this sort of
> task. Perhaps when I have more database experience under my belt that
> will feel like less of a kludge.)

'\d' and friends in psql are just shorthand for queries against the
system catalogs. So you're not "stepping outside the language",
really.

If you do 'psql -E' you can see the queries generated by the various
backslash commands.

-Doug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2002-07-17 14:09:58 Re: table size growing out of control
Previous Message Robert Treat 2002-07-17 14:00:25 Re: Blank date field.. Help...