Re: Display of foreign keys in psql

From: Brendan Jurd <direvus(at)gmail(dot)com>
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:08:42
Message-ID: 37ed240d0906101508ve7276d4j751e7dc22d763c3e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2009/6/11 Peter Eisentraut <peter_e(at)gmx(dot)net>:
> 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?)

Isn't "on" the conventional preposition to use here? I would think of
this as a foreign key "on" test2, referencing test1.

In the same way you would talk about having a primary key "on" a
table. Same goes for indexes, triggers, table constraints, etc. IMO

Cheers,
BJ

In response to

Browse pgsql-hackers by date

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