Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions HISTORY.asc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
STABLE
------
== BREAKING: registered SQL now runs with `search_path = pg_catalog, pg_temp`
0.2.0
-----
== Breaking change: registered SQL now runs with `search_path = pg_catalog, pg_temp`
Existing registrations may break: SQL registered with `extension_drop__add()`
or `extension_drop__update()` can no longer rely on unqualified names. It
must schema-qualify everything it uses (for example cat_tools and
Expand All @@ -18,6 +18,12 @@ just makes the declared floor honest.
has USAGE on the schema extension_drop is installed in, and new event
triggers protect that USAGE afterwards. See README.md for details.

== Known issue: restoring a `pg_dump` fails for non-`public` schemas
The new `PUBLIC` USAGE requirement makes `CREATE EXTENSION` fail when a dump is
restored into a schema other than `public`, and `--single-transaction` restores
of a database with registered drop SQL fail on a duplicate
`extension_drop__commands` key. Not fixed in this release.

== Run drop commands when `DROP SCHEMA ... CASCADE` or `DROP OWNED BY` drops an extension
The event trigger now fires for `DROP SCHEMA` and `DROP OWNED` as well as
`DROP EXTENSION`. Previously the other two commands left a stale registration
Expand Down
4 changes: 2 additions & 2 deletions META.in.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"name": "extension_drop",

"X_comment": "REQUIRED. Version of the distribution. http://pgxn.org/spec/#version",
"version": "stable",
"version": "0.2.0",

"X_comment": "REQUIRED. Short description of distribution.",
"abstract": "Run custom commands when an extension is dropped.",
Expand All @@ -41,7 +41,7 @@
"file": "sql/extension_drop.sql",

"X_comment": "REQUIRED. Version the extension is at.",
"version": "stable",
"version": "0.2.0",

"X_comment": "Optional: \"abstract\": Description of the extension.",
"abstract": "Run custom commands when an extension is dropped.",
Expand Down
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"name": "extension_drop",

"X_comment": "REQUIRED. Version of the distribution. http://pgxn.org/spec/#version",
"version": "stable",
"version": "0.2.0",

"X_comment": "REQUIRED. Short description of distribution.",
"abstract": "Run custom commands when an extension is dropped.",
Expand All @@ -41,7 +41,7 @@
"file": "sql/extension_drop.sql",

"X_comment": "REQUIRED. Version the extension is at.",
"version": "stable",
"version": "0.2.0",

"X_comment": "Optional: \"abstract\": Description of the extension.",
"abstract": "Run custom commands when an extension is dropped.",
Expand Down
2 changes: 1 addition & 1 deletion extension_drop.control
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
comment = 'Allows specifying commands to run when dropping an extension.'
default_version = 'stable'
default_version = '0.2.0'
relocatable = false
requires = 'cat_tools'
Loading
Loading