Skip to content

Commit 11faec2

Browse files
committed
fix migration script (1.3)
1 parent 01d1074 commit 11faec2

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

pg_pathman--1.2--1.3.sql

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,11 @@ DROP FUNCTION @extschema@.get_attribute_type(REGCLASS, TEXT);
6363
DROP FUNCTION @extschema@.create_hash_partitions(REGCLASS, TEXT, INTEGER, BOOLEAN);
6464
DROP FUNCTION @extschema@.create_hash_partitions_internal(REGCLASS, TEXT, INTEGER);
6565
DROP FUNCTION @extschema@.build_range_condition(TEXT, ANYELEMENT, ANYELEMENT);
66-
DROP FUNCTION @extschema@.copy_foreign_keys(REGCLASS, REGCLASS);
67-
DROP FUNCTION @extschema@.invoke_on_partition_created_callback(REGCLASS, REGCLASS, REGPROCEDURE, ANYELEMENT, ANYELEMENT);
68-
DROP FUNCTION @extschema@.invoke_on_partition_created_callback(REGCLASS, REGCLASS, REGPROCEDURE);
6966
DROP FUNCTION @extschema@.split_range_partition(REGCLASS, ANYELEMENT, TEXT, TEXT, OUT ANYARRAY);
7067
DROP FUNCTION @extschema@.drop_range_partition(REGCLASS, BOOLEAN);
7168
DROP FUNCTION @extschema@.attach_range_partition(REGCLASS, REGCLASS, ANYELEMENT, ANYELEMENT);
7269
DROP FUNCTION @extschema@.detach_range_partition(REGCLASS);
70+
DROP FUNCTION @extschema@.merge_range_partitions_internal(REGCLASS, REGCLASS, REGCLASS, ANYELEMENT);
7371

7472
/* ------------------------------------------------------------------------
7573
* Alter functions' modifiers
@@ -933,7 +931,7 @@ SET pg_pathman.enable_partitionfilter = off;
933931

934932

935933
CREATE OR REPLACE FUNCTION @extschema@.drop_range_partition_expand_next(
936-
partition REGCLASS)
934+
partition_relid REGCLASS)
937935
RETURNS VOID AS 'pg_pathman', 'drop_range_partition_expand_next'
938936
LANGUAGE C STRICT;
939937

@@ -945,3 +943,14 @@ CREATE OR REPLACE FUNCTION @extschema@.build_range_condition(
945943
end_value ANYELEMENT)
946944
RETURNS TEXT AS 'pg_pathman', 'build_range_condition'
947945
LANGUAGE C;
946+
947+
948+
/* ------------------------------------------------------------------------
949+
* Final words of wisdom
950+
* ----------------------------------------------------------------------*/
951+
DO language plpgsql
952+
$$
953+
BEGIN
954+
RAISE WARNING 'Don''t forget to execute "SET pg_pathman.enable = t" to activate pg_pathman';
955+
END
956+
$$;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy