Re: Display of foreign keys in psql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Display of foreign keys in psql
Date: 2009-06-10 22:04:26
Message-ID: 14937.1244671466@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Referenced by:
> "test2_y_fkey" IN test2 FOREIGN KEY (y) REFERENCES test1(a)

> Is there a magic reason why the IN is capitalized? (Maybe "from" would be
> better anyway?)

I think it was probably done to make it more visually distinct from the
adjacent identifiers, which would be lowercase more often than not.

Personally I'd suggest losing the word altogether; what's wrong with

Referenced by:
"test2_y_fkey" test2 FOREIGN KEY (y) REFERENCES test1(a)

Or use TABLE:

"test2_y_fkey" TABLE test2 FOREIGN KEY (y) REFERENCES test1(a)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2009-06-10 22:04:39 Re: Display of foreign keys in psql
Previous Message Kevin Grittner 2009-06-10 22:04:12 Re: Display of foreign keys in psql