Re: Reference by output in : \d <table_name>

From: kenneth d'souza <kd_souza(at)hotmail(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Brendan Jurd <direvus(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Reference by output in : \d <table_name>
Date: 2008-04-16 12:00:40
Message-ID: BAY116-W44BCFBC36E9487BD9FAE8CEDEA0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Hi Brendan,

I thought you were referring to the spaces sourrounding the word "FOREIGN KEY" on the last line and hence my explaination was out of place.I am glad that you have corrected the indentation to 4 spaces. Those were unintentional at 2 spaces from myside.
However,Why does the word "FOREIGN KEY" appear in the last line of your output. My original patch had the output like this.
Referenced by: "bar_foo_fkey" IN public.bar(foo) REFERENCES foo(a)
The keyword "FOREIGN KEY" was removed by me as it would further cause a confusion.
Secondly, since the table foo is altered with an addition of a new column "bar", it doesn't display in your output. Please double check.
My output is looking like this:
testdb=# \d foo Table "public.foo" Column | Type | Modifiers--------+---------+----------- a | integer | not null bar | integer | not null /* Brendan--this line is missing in your output */Indexes: "foo_pkey" PRIMARY KEY, btree (a)Foreign-key constraints: "foo_bar_fkey" FOREIGN KEY (bar) REFERENCES bar(a)Referenced by: "bar_foo_fkey" IN public.bar(foo) REFERENCES foo(a)
/* please ignore the 2 space indent, I am still using my orignal patch. I will correct it later */
Thanks,Kenneth> Date: Mon, 14 Apr 2008 11:04:35 -0400> From: alvherre(at)commandprompt(dot)com> To: direvus(at)gmail(dot)com> CC: tgl(at)sss(dot)pgh(dot)pa(dot)us; kd_souza(at)hotmail(dot)com; pgsql-patches(at)postgresql(dot)org> Subject: Re: [PATCHES] Reference by output in : \d <table_name>> > Brendan Jurd escribió:> > > Yeah, that's what I figured. The patch I attached to my previous> > email should fix it up.> > Applied, thanks.> > -- > Alvaro Herrera http://www.CommandPrompt.com/> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
_________________________________________________________________
Fashion Channel : Want to know what’s the latest in the fashion world ? You have it all here on MSN Fashion.
http://lifestyle.in.msn.com/

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Gregory Stark 2008-04-16 13:09:38 Re: Improve shutdown during online backup
Previous Message Pavel Stehule 2008-04-16 11:30:02 options for RAISE statement