Skip to content

Commit 55e44c0

Browse files
committed
added the tablespace attribute to the split_range_partition() function; migration script to version 1.2
1 parent bb37684 commit 55e44c0

File tree

8 files changed

+3703
-9
lines changed

8 files changed

+3703
-9
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ regression.out
88
*.pyc
99
*.gcda
1010
*.gcno
11-
pg_pathman--1.1.sql
11+
pg_pathman--1.2.sql

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ OBJS = src/init.o src/relation_info.o src/utils.o src/partition_filter.o \
99
src/partition_creation.o $(WIN32RES)
1010

1111
EXTENSION = pg_pathman
12-
EXTVERSION = 1.1
12+
EXTVERSION = 1.2
1313
DATA_built = pg_pathman--$(EXTVERSION).sql
14-
DATA = pg_pathman--1.0.sql pg_pathman--1.0--1.1.sql
14+
DATA = pg_pathman--1.0.sql \
15+
pg_pathman--1.0--1.1.sql \
16+
pg_pathman--1.1.sql \
17+
pg_pathman--1.1--1.2.sql
1518
PGFILEDESC = "pg_pathman - partitioning tool"
1619

1720
REGRESS = pathman_basic \

init.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -716,13 +716,13 @@ LANGUAGE C STRICT;
716716
*/
717717
CREATE OR REPLACE FUNCTION @extschema@.build_check_constraint_name(
718718
partition_relid REGCLASS,
719-
partitioned_col INT2)
719+
attribute INT2)
720720
RETURNS TEXT AS 'pg_pathman', 'build_check_constraint_name_attnum'
721721
LANGUAGE C STRICT;
722722

723723
CREATE OR REPLACE FUNCTION @extschema@.build_check_constraint_name(
724724
partition_relid REGCLASS,
725-
partitioned_col TEXT)
725+
attribute TEXT)
726726
RETURNS TEXT AS 'pg_pathman', 'build_check_constraint_name_attname'
727727
LANGUAGE C STRICT;
728728

@@ -751,7 +751,7 @@ RETURNS BOOLEAN AS 'pg_pathman', 'add_to_pathman_config'
751751
LANGUAGE C;
752752

753753
CREATE OR REPLACE FUNCTION @extschema@.invalidate_relcache(
754-
OID)
754+
relid OID)
755755
RETURNS VOID AS 'pg_pathman'
756756
LANGUAGE C STRICT;
757757

0 commit comments

Comments
 (0)