Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3828649

Browse files
committed
Fixed dropping partitioned tables.
Without that, pathman_ddl_trigger didn't fire and record about table was not removed from pathman_config.
1 parent aa9e56e commit 3828649

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pg_shardman--0.0.1.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,3 +465,6 @@ BEGIN
465465
INSERT INTO @extschema@.cmd_opts VALUES (DEFAULT, c_id, partitions_count);
466466
END
467467
$$ LANGUAGE plpgsql;
468+
-- Otherwise partitioned tables on worker nodes not will be dropped properly,
469+
-- see pathman's docs.
470+
ALTER EVENT TRIGGER pathman_ddl_trigger ENABLE ALWAYS;

0 commit comments

Comments
 (0)