forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5e5f4fc
committed
postgres_fdw: Save foreign server OID in connection cache entry.
The foreign server OID stored in the connection cache entry is used asa lookup key to directly get the server name.Previously since the connection cache entry did not have the server OID,postgres_fdw had to get the server OID at first from user mapping beforegetting the server name. So if the corresponding user mapping was dropped,postgres_fdw could raise the error "cache lookup failed for user mapping"while looking up user mapping and fail to get the server name even thoughthe server had not been dropped yet.Author: Bharath RupireddyReviewed-by: Fujii MasaoDiscussion:https://postgr.es/m/CALj2ACVRZPUB7ZwqLn-6DY8C_UmPs6084gSpHA92YBv++1AJXA@mail.gmail.com1 parent8e396a7 commit5e5f4fc
1 file changed
+3
-9
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
| 60 | + | |
60 | 61 |
| |
61 | 62 |
| |
62 | 63 |
| |
| |||
273 | 274 |
| |
274 | 275 |
| |
275 | 276 |
| |
| 277 | + | |
276 | 278 |
| |
277 | 279 |
| |
278 | 280 |
| |
| |||
1138 | 1140 |
| |
1139 | 1141 |
| |
1140 | 1142 |
| |
1141 |
| - | |
1142 |
| - | |
1143 | 1143 |
| |
1144 | 1144 |
| |
1145 | 1145 |
| |
| |||
1150 | 1150 |
| |
1151 | 1151 |
| |
1152 | 1152 |
| |
1153 |
| - | |
1154 |
| - | |
1155 |
| - | |
1156 |
| - | |
1157 |
| - | |
1158 |
| - | |
1159 |
| - | |
| 1153 | + | |
1160 | 1154 |
| |
1161 | 1155 |
| |
1162 | 1156 |
| |
|
0 commit comments
Comments
(0)