From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
Cc: | Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Improve psql \d output |
Date: | 2003-03-25 22:04:05 |
Message-ID: | 200303252204.h2PM45603293@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Your patch has been added to the PostgreSQL unapplied patches list at:
http://momjian.postgresql.org/cgi-bin/pgpatches
I will try to apply it within the next 48 hours.
---------------------------------------------------------------------------
Christopher Kings-Lynne wrote:
> Example:
>
> test=# \d test
> Table "public.test"
> Column | Type | Modifiers
> --------+---------+-----------
> a | integer | not null
> Indexes:
> "test_pkey" PRIMARY KEY btree (a)
> Check Constraints:
> "$2" CHECK (a > 1)
> Foreign Key Constraints:
> "$1" FOREIGN KEY (a) REFERENCES parent(b)
> Rules:
> myrule AS ON INSERT TO test DO INSTEAD NOTHING
> Triggers:
> "asdf asdf" AFTER INSERT OR DELETE ON test FOR EACH STATEMENT EXECUTE
> PROCEDURE update_pg_pwd_and_pg_group(),
> mytrigger AFTER INSERT OR DELETE ON test FOR EACH ROW EXECUTE PROCEDURE
> update_pg_pwd_and_pg_group()
>
> I have minimised the double quoting of identifiers as much as I could
> easily, and I will submit another patch when I have time to work on it that
> will use a 'fmtId' function to determine it exactly.
>
> I think it's a significant improvement in legibility...
>
> Obviously the table example above is slightly degenerate in that not many
> tables in production have heaps of (non-constraint) triggers and rules.
>
> Chris
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-03-25 23:12:00 | Re: array support patch phase 1 patch |
Previous Message | Bruce Momjian | 2003-03-25 22:03:23 | Re: Doc patch for func.sgml |