forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit70a7732
committed
Remove support for upgrading extensions from "unpackaged" state.
Andres Freund pointed out that allowing non-superusers to run"CREATE EXTENSION ... FROM unpackaged" has security risks, sincethe unpackaged-to-1.0 scripts don't try to verify that the existingobjects they're modifying are what they expect. Just attaching suchobjects to an extension doesn't seem too dangerous, but some of themdo more than that.We could have resolved this, perhaps, by still requiring superuserprivilege to use the FROM option. However, it's fair to ask just whatwe're accomplishing by continuing to lug the unpackaged-to-1.0 scriptsforward. None of them have received any real testing since 9.1 days,so they may not even work anymore (even assuming that one could stillload the previous "loose" object definitions into a v13 database).And an installation that's trying to go from pre-9.1 to v13 or laterin one jump is going to have worse compatibility problems than whetherthere's a trivial way to convert their contrib modules into extensionstyle.Hence, let's just drop both those scripts and the core-code supportfor "CREATE EXTENSION ... FROM".Discussion:https://postgr.es/m/20200213233015.r6rnubcvl4egdh5r@alap3.anarazel.de1 parent2f9c46a commit70a7732
File tree
84 files changed
+55
-2428
lines changed- contrib
- btree_gin
- btree_gist
- citext
- cube
- dblink
- dict_int
- dict_xsyn
- earthdistance
- fuzzystrmatch
- hstore
- intagg
- intarray
- isn
- lo
- ltree
- pageinspect
- pg_buffercache
- pg_freespacemap
- pg_stat_statements
- pg_trgm
- pgcrypto
- pgrowlocks
- pgstattuple
- seg
- spi
- sslinfo
- tablefunc
- unaccent
- uuid-ossp
- xml2
- doc/src/sgml
- ref
- src
- backend
- commands
- parser
- pl
- plperl
- plpgsql/src
- plpython
- tcl
- test/modules/test_parser
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
84 files changed
+55
-2428
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
|
Lines changed: 0 additions & 119 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
|
0 commit comments
Comments
(0)