Skip to content

Commit 581a695

Browse files
committed
fix migration script (broken DROP TRIGGER, after-update-instruction)
1 parent e31e4b5 commit 581a695

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Diff for: pg_pathman--1.1--1.2.sql

+12-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ DROP FUNCTION @[email protected]_range_partition(REGCLASS, ANYELEMENT, TEXT, OUT
2626
DROP FUNCTION @[email protected]_relcache(OID);
2727

2828
/* drop trigger and its function (PATHMAN_CONFIG_PARAMS) */
29-
DROP TRIGGER pathman_config_params_trigger;
29+
DROP TRIGGER pathman_config_params_trigger ON @[email protected]_config_params;
3030
DROP FUNCTION @[email protected]_config_params_trigger_func();
3131

3232

@@ -1291,3 +1291,14 @@ LANGUAGE C STRICT;
12911291
* ----------------------------------------------------------------------*/
12921292
ALTER TABLE @[email protected]_config_params ADD COLUMN spawn_using_bgw BOOLEAN NOT NULL DEFAULT FALSE;
12931293
ALTER TABLE @[email protected]_config_params ADD CHECK (@[email protected]_part_callback(init_callback));
1294+
1295+
1296+
/* ------------------------------------------------------------------------
1297+
* Final words of wisdom
1298+
* ----------------------------------------------------------------------*/
1299+
DO language plpgsql
1300+
$$
1301+
BEGIN
1302+
RAISE WARNING 'Don''t forget to execute "SET pg_pathman.enable = t" to activate pg_pathman';
1303+
END
1304+
$$;

0 commit comments

Comments
 (0)