![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
PostGreSql 7.4.3 Am I right in assuming that a foreign key on a table does not explicity create an index on that column on the foreign table? |
#2
| |||
| |||
|
#3
| |||
| |||
|
|
PostGreSql 7.4.3 Am I right in assuming that a foreign key on a table does not explicity create an index on that column on the foreign table? I can see via the \d on the table that the foreign key exists, but accessing the table on that column seems to use a sequential scan. |
#4
| |||
| |||
|
|
On Fri, Aug 27, 2004 at 09:31:51AM +0100, Steve Tucknott wrote: Am I right in assuming that a foreign key on a table does not explicity create an index on that column on the foreign table? Adding the foreign key won't add the index itself, but I believe that foreign keys can only be declared on columns declared unique. |
#5
| |||
| |||
|
|
PostGreSql 7.4.3 Am I right in assuming that a foreign key on a table does not explicity create an index on that column on the foreign table? I can see via the \d on the table that the foreign key exists, but accessing the table on that column seems to use a sequential scan. |
#6
| |||
| |||
|
|
On Fri, Aug 27, 2004 at 09:31:51AM +0100, Steve Tucknott wrote: Am I right in assuming that a foreign key on a table does not explicity create an index on that column on the foreign table? Adding the foreign key won't add the index itself, but I believe that foreign keys can only be declared on columns declared unique. |
![]() |
| Thread Tools | |
| Display Modes | |
| |