forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbfe21b7
Support non-btree indexes for foreign keys
Previously, only btrees were supported as the referenced unique indexfor foreign keys because there was no way to get the equality strategynumber for other index methods. We have this now (commitc09e5a6), so we can support this. In fact, this is now just aspecial case of the existing generalized "period" foreign keysupport, since that already knows how to lookup equality strategynumbers.Note that this does not change the requirement that the referencedindex needs to be unique, and at the moment, only btree supports that,so this does not change anything in practice, but it would allowanother index method that has amcanunique to be supported.Co-authored-by: Mark Dilger <mark.dilger@enterprisedb.com>Discussion:https://www.postgresql.org/message-id/flat/E72EAA49-354D-4C2E-8EB9-255197F55330@enterprisedb.com1 parent83ea6c5 commitbfe21b7
1 file changed
+23
-34
lines changedLines changed: 23 additions & 34 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10082 | 10082 |
| |
10083 | 10083 |
| |
10084 | 10084 |
| |
| 10085 | + | |
| 10086 | + | |
10085 | 10087 |
| |
10086 | 10088 |
| |
10087 | 10089 |
| |
| |||
10098 | 10100 |
| |
10099 | 10101 |
| |
10100 | 10102 |
| |
10101 |
| - | |
10102 |
| - | |
10103 |
| - | |
10104 |
| - | |
10105 |
| - | |
10106 |
| - | |
10107 |
| - | |
10108 |
| - | |
10109 |
| - | |
10110 |
| - | |
10111 |
| - | |
10112 |
| - | |
10113 |
| - | |
10114 |
| - | |
10115 |
| - | |
10116 |
| - | |
10117 |
| - | |
10118 |
| - | |
10119 |
| - | |
10120 |
| - | |
10121 |
| - | |
10122 |
| - | |
10123 |
| - | |
10124 |
| - | |
10125 |
| - | |
10126 |
| - | |
10127 |
| - | |
10128 |
| - | |
10129 |
| - | |
10130 |
| - | |
10131 |
| - | |
10132 |
| - | |
10133 |
| - | |
10134 |
| - | |
| 10103 | + | |
| 10104 | + | |
| 10105 | + | |
| 10106 | + | |
| 10107 | + | |
| 10108 | + | |
| 10109 | + | |
| 10110 | + | |
| 10111 | + | |
| 10112 | + | |
| 10113 | + | |
| 10114 | + | |
| 10115 | + | |
| 10116 | + | |
| 10117 | + | |
| 10118 | + | |
| 10119 | + | |
| 10120 | + | |
| 10121 | + | |
| 10122 | + | |
| 10123 | + | |
10135 | 10124 |
| |
10136 | 10125 |
| |
10137 | 10126 |
| |
|
0 commit comments
Comments
(0)