Commit 8309f3f
committed
Hide duplicate names from extension views
If extensions of equal names were installed in different directories
in the path, the views pg_available_extensions and
pg_available_extension_versions would show all of them, even though
only the first one was actually reachable by CREATE EXTENSION. To
fix, have those views skip extensions found later in the path if they
have names already found earlier.
Also add a bit of documentation that only the first extension in the
path can be used.
Reported-by: Pierrick <pierrick.chovelon@dalibo.com>
Discussion: https://www.postgresql.org/message-id/flat/8f5a0517-1cb8-4085-ae89-77e7454e27ba%40dalibo.com1 parent bee763a commit 8309f3f
File tree
3 files changed
+36
-3
lines changed- doc/src/sgml
- src
- backend/commands
- test/modules/test_extensions/t
3 files changed
+36
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11057 | 11057 | | |
11058 | 11058 | | |
11059 | 11059 | | |
| 11060 | + | |
| 11061 | + | |
| 11062 | + | |
| 11063 | + | |
| 11064 | + | |
| 11065 | + | |
11060 | 11066 | | |
11061 | 11067 | | |
11062 | 11068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2208 | 2208 | | |
2209 | 2209 | | |
2210 | 2210 | | |
| 2211 | + | |
2211 | 2212 | | |
2212 | 2213 | | |
2213 | 2214 | | |
| |||
2232 | 2233 | | |
2233 | 2234 | | |
2234 | 2235 | | |
| 2236 | + | |
2235 | 2237 | | |
2236 | 2238 | | |
2237 | 2239 | | |
| |||
2246 | 2248 | | |
2247 | 2249 | | |
2248 | 2250 | | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
2249 | 2261 | | |
2250 | 2262 | | |
2251 | 2263 | | |
| |||
2294 | 2306 | | |
2295 | 2307 | | |
2296 | 2308 | | |
| 2309 | + | |
2297 | 2310 | | |
2298 | 2311 | | |
2299 | 2312 | | |
| |||
2318 | 2331 | | |
2319 | 2332 | | |
2320 | 2333 | | |
| 2334 | + | |
2321 | 2335 | | |
2322 | 2336 | | |
2323 | 2337 | | |
| |||
2330 | 2344 | | |
2331 | 2345 | | |
2332 | 2346 | | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
2333 | 2357 | | |
2334 | 2358 | | |
2335 | 2359 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | | - | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
0 commit comments