Skip to content

Commit 1709c15

Browse files
committed
couple fixes to migration script
1 parent 55e44c0 commit 1709c15

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

pg_pathman--1.1--1.2.sql

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,7 @@ DROP FUNCTION @extschema@.validate_on_partition_created_callback(REGPROC);
2222
DROP FUNCTION @extschema@.get_sequence_name(TEXT, TEXT);
2323
DROP FUNCTION @extschema@.create_single_range_partition(REGCLASS, ANYELEMENT, ANYELEMENT, TEXT, TEXT);
2424
DROP FUNCTION @extschema@.check_overlap(REGCLASS, ANYELEMENT, ANYELEMENT);
25-
DROP FUNCTION @extschema@.split_range_partition(REGCLASS, ANYELEMENT, TEXT, ANYARRAY);
26-
27-
28-
/* ------------------------------------------------------------------------
29-
* Alter tables
30-
* ----------------------------------------------------------------------*/
31-
ALTER TABLE @extschema@.pathman_config_params ADD COLUMN spawn_using_bgw BOOLEAN NOT NULL DEFAULT FALSE;
32-
ALTER TABLE @extschema@.pathman_config_params ADD CHECK (@extschema@.validate_part_callback(init_callback));
33-
25+
DROP FUNCTION @extschema@.split_range_partition(REGCLASS, ANYELEMENT, TEXT, OUT ANYARRAY);
3426

3527
/* ------------------------------------------------------------------------
3628
* Alter functions' modifiers
@@ -1271,3 +1263,10 @@ CREATE OR REPLACE FUNCTION @extschema@.check_range_available(
12711263
range_max ANYELEMENT)
12721264
RETURNS VOID AS 'pg_pathman', 'check_range_available_pl'
12731265
LANGUAGE C;
1266+
1267+
1268+
/* ------------------------------------------------------------------------
1269+
* Alter tables
1270+
* ----------------------------------------------------------------------*/
1271+
ALTER TABLE @extschema@.pathman_config_params ADD COLUMN spawn_using_bgw BOOLEAN NOT NULL DEFAULT FALSE;
1272+
ALTER TABLE @extschema@.pathman_config_params ADD CHECK (@extschema@.validate_part_callback(init_callback));

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