Skip to content

Commit 673a8ea

Browse files
committed
The repack schema is contained in the pg_repack extension
...not the other way around. This allows DROP EXTENSION ... CASCADE to remove temporary directories, simplifying the cleanup procedure after an error, and getting rid of the schema on uninstall.
1 parent dd72e2a commit 673a8ea

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

lib/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ LIBS := $(filter-out -lxslt, $(LIBS))
4646

4747
pg_repack.sql: pg_repack.sql.in
4848
echo "BEGIN;\n" > $@; \
49-
echo "CREATE SCHEMA repack;\n" >> $@; \
5049
sed 's,MODULE_PATHNAME,$$libdir/$(MODULE_big),g' $< >> $@; \
5150
echo "\nCOMMIT;" >> $@;
5251

lib/pg_repack.control

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ comment = 're-organizes a PostgreSQL database'
33
default_version = '1.2dev0'
44
module_pathname = '$libdir/pg_repack'
55
relocatable = false
6-
schema = repack

lib/pg_repack.sql.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* Portions Copyright (c) 2012, The Reorg Development Team
77
*/
88

9+
CREATE SCHEMA repack;
10+
911
CREATE FUNCTION repack.version() RETURNS text AS
1012
'MODULE_PATHNAME', 'repack_version'
1113
LANGUAGE C IMMUTABLE STRICT;

0 commit comments

Comments
 (0)