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 [email protected]
Whole thread Raw
In response to Display of foreign keys in psql  (Peter Eisentraut <[email protected]>)
List pgsql-hackers
2009/6/11 Peter Eisentraut <[email protected]>:
> 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