Skip to content

Commit 9eb7fea

Browse files
committed
pathmn: rename extension to pg_pathman
1 parent 9381b7e commit 9eb7fea

20 files changed

+18
-18
lines changed

contrib/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ SUBDIRS = \
2828
oid2name \
2929
pageinspect \
3030
passwordcheck \
31-
pathman \
31+
pg_pathman \
3232
pg_buffercache \
3333
pg_freespacemap \
3434
pg_prewarm \

contrib/pathman/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

contrib/pathman/conf.add

Lines changed: 0 additions & 1 deletion
This file was deleted.

contrib/pg_pathman/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.o
2+
*.so
3+
pg_pathman--*.sql

contrib/pathman/Makefile renamed to contrib/pg_pathman/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# contrib/pathman/Makefile
1+
# contrib/pg_pathman/Makefile
22

33
MODULE_big = pg_pathman
44
OBJS = init.o pg_pathman.o dsm_array.o rangeset.o pl_funcs.o $(WIN32RES)
File renamed without changes.
File renamed without changes.

contrib/pg_pathman/conf.add

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shared_preload_libraries='pg_pathman'
File renamed without changes.

contrib/pathman/expected/pg_pathman.out renamed to contrib/pg_pathman/expected/pg_pathman.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,4 +340,4 @@ SELECT pathman.drop_range_partitions('test.num_range_rel');
340340
(1 row)
341341

342342
DROP TABLE test.num_range_rel CASCADE;
343-
DROP EXTENSION pathman;
343+
DROP EXTENSION pg_pathman;

contrib/pathman/init.c renamed to contrib/pg_pathman/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ get_extension_schema()
4848
int ret;
4949
bool isnull;
5050

51-
ret = SPI_exec("SELECT extnamespace::regnamespace::text FROM pg_extension WHERE extname = 'pathman'", 0);
51+
ret = SPI_exec("SELECT extnamespace::regnamespace::text FROM pg_extension WHERE extname = 'pg_pathman'", 0);
5252
if (ret > 0 && SPI_tuptable != NULL && SPI_processed > 0)
5353
{
5454
TupleDesc tupdesc = SPI_tuptable->tupdesc;
@@ -292,7 +292,7 @@ load_check_constraints(Oid parent_oid)
292292
{
293293
if (ranges[i].max > ranges[i+1].min)
294294
{
295-
elog(WARNING, "Partitions %u and %u overlap. Disabling pathman for relation %u...",
295+
elog(WARNING, "Partitions %u and %u overlap. Disabling pg_pathman for relation %u...",
296296
ranges[i].child_oid, ranges[i+1].child_oid, parent_oid);
297297
hash_search(relations, (const void *) &parent_oid, HASH_REMOVE, &found);
298298
}
File renamed without changes.

contrib/pathman/pg_pathman.c renamed to contrib/pg_pathman/pg_pathman.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ _PG_init(void)
105105
{
106106
elog(ERROR, "Pathman module must be initialized in postmaster. "
107107
"Put the following line to configuration file: "
108-
"shared_preload_library = 'pathman'");
108+
"shared_preload_library = 'pg_pathman'");
109109
initialization_needed = false;
110110
}
111111

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pathman extension
1+
# pg_pathman extension
22
comment 'Partitioning tool'
33
default_version = '0.1'
44
module_pathname='$libdir/pg_pathman'
File renamed without changes.
File renamed without changes.
File renamed without changes.

contrib/pathman/sql/init.sql renamed to contrib/pg_pathman/sql/init.sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,32 @@ CREATE TABLE IF NOT EXISTS @extschema@.pathman_config (
1010

1111

1212
CREATE OR REPLACE FUNCTION @extschema@.on_create_partitions(relid OID)
13-
RETURNS VOID AS 'pathman', 'on_partitions_created' LANGUAGE C STRICT;
13+
RETURNS VOID AS 'pg_pathman', 'on_partitions_created' LANGUAGE C STRICT;
1414

1515
CREATE OR REPLACE FUNCTION @extschema@.on_update_partitions(relid OID)
16-
RETURNS VOID AS 'pathman', 'on_partitions_updated' LANGUAGE C STRICT;
16+
RETURNS VOID AS 'pg_pathman', 'on_partitions_updated' LANGUAGE C STRICT;
1717

1818
CREATE OR REPLACE FUNCTION @extschema@.on_remove_partitions(relid OID)
19-
RETURNS VOID AS 'pathman', 'on_partitions_removed' LANGUAGE C STRICT;
19+
RETURNS VOID AS 'pg_pathman', 'on_partitions_removed' LANGUAGE C STRICT;
2020

2121
CREATE OR REPLACE FUNCTION @extschema@.find_range_partition(relid OID, value ANYELEMENT)
22-
RETURNS OID AS 'pathman', 'find_range_partition' LANGUAGE C STRICT;
22+
RETURNS OID AS 'pg_pathman', 'find_range_partition' LANGUAGE C STRICT;
2323

2424

2525
/*
2626
* Returns min and max values for specified RANGE partition.
2727
*/
2828
CREATE OR REPLACE FUNCTION @extschema@.get_partition_range(
2929
parent_relid OID, partition_relid OID, dummy ANYELEMENT)
30-
RETURNS ANYARRAY AS 'pathman', 'get_partition_range' LANGUAGE C STRICT;
30+
RETURNS ANYARRAY AS 'pg_pathman', 'get_partition_range' LANGUAGE C STRICT;
3131

3232

3333
/*
3434
* Returns N-th range (in form of array)
3535
*/
3636
CREATE OR REPLACE FUNCTION @extschema@.get_range_by_idx(
3737
parent_relid OID, idx INTEGER, dummy ANYELEMENT)
38-
RETURNS ANYARRAY AS 'pathman', 'get_range_by_idx' LANGUAGE C STRICT;
38+
RETURNS ANYARRAY AS 'pg_pathman', 'get_range_by_idx' LANGUAGE C STRICT;
3939

4040

4141
/*

contrib/pathman/sql/pathman.sql renamed to contrib/pg_pathman/sql/pg_pathman.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ DROP TABLE test.hash_rel CASCADE;
9696
SELECT pathman.drop_range_partitions('test.num_range_rel');
9797
DROP TABLE test.num_range_rel CASCADE;
9898

99-
DROP EXTENSION pathman;
99+
DROP EXTENSION pg_pathman;
File renamed without changes.

0 commit comments

Comments
 (0)