Re: Display of foreign keys in psql - Mailing list pgsql-hackers

From Brendan Jurd
Subject Re: Display of foreign keys in psql
Date
Msg-id 37ed240d0906101508ve7276d4j751e7dc22d763c3e@mail.gmail.com
Whole thread Raw
In response to Display of foreign keys in psql  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
2009/6/11 Peter Eisentraut <peter_e@gmx.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


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Display of foreign keys in psql
Next
From: Greg Stark
Date:
Subject: Re: Display of foreign keys in psql