Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9381b7e

Browse files
committed
pathman: rename module to pg_pathman
1 parent0f30f01 commit9381b7e

File tree

7 files changed

+30
-30
lines changed

7 files changed

+30
-30
lines changed

‎contrib/pathman/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# contrib/pathman/Makefile
22

3-
MODULE_big =pathman
4-
OBJS = init.opathman.o dsm_array.o rangeset.o pl_funcs.o$(WIN32RES)
3+
MODULE_big =pg_pathman
4+
OBJS = init.opg_pathman.o dsm_array.o rangeset.o pl_funcs.o$(WIN32RES)
55

6-
EXTENSION =pathman
6+
EXTENSION =pg_pathman
77
EXTVERSION = 0.1
88
DATA_built =$(EXTENSION)--$(EXTVERSION).sql
9-
PGFILEDESC = "pathman - partitioning tool"
9+
PGFILEDESC = "pg_pathman - partitioning tool"
1010

11-
REGRESS =pathman
11+
REGRESS =pg_pathman
1212
EXTRA_CLEAN =$(EXTENSION)--$(EXTVERSION).sql
1313

1414
ifdefUSE_PGXS
1515
PG_CONFIG = pg_config
1616
PGXS :=$(shell$(PG_CONFIG) --pgxs)
1717
include$(PGXS)
1818
else
19-
subdir = contrib/pathman
19+
subdir = contrib/pg_pathman
2020
top_builddir = ../..
2121
include$(top_builddir)/src/Makefile.global
2222
include$(top_srcdir)/contrib/contrib-global.mk

‎contrib/pathman/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#pathman
1+
#pg_pathman
22

3-
The`pathman` module provides optimized partitioning mechanism and functions to manage partitions.
3+
The`pg_pathman` module provides optimized partitioning mechanism and functions to manage partitions.
44

5-
##pathman Concepts
5+
##pg_pathman Concepts
66

77
Partitioning refers to splitting one large table into smaller pieces. Each row in such table assigns to a single partition based on partitioning key. Common partitioning strategies are:
88

@@ -20,7 +20,7 @@ CREATE TABLE test_2 (CHECK ( id >= 200 AND id < 300 )) INHERITS (test);
2020

2121
Despite the flexibility of this approach it has weakness. If query uses filtering the optimizer forced to perform an exhaustive search and check constraints for each partition to determine partitions from which it should select data. If the number of partitions is large the overhead may be significant.
2222

23-
The`pathman` module provides functions to manage partitions and partitioning mechanism optimized based on knowledge of the partitions structure. It stores partitioning configuration in the`pathman_config` table, each row of which contains single entry for partitioned table (relation name, partitioning key and type). During initialization the`pathman` module caches information about child partitions in shared memory in form convenient to perform rapid search. When user executes SELECT querypathman analyzes conditions tree looking for conditions like:
23+
The`pg_pathman` module provides functions to manage partitions and partitioning mechanism optimized based on knowledge of the partitions structure. It stores partitioning configuration in the`pathman_config` table, each row of which contains single entry for partitioned table (relation name, partitioning key and type). During initialization the`pg_pathman` module caches information about child partitions in shared memory in form convenient to perform rapid search. When user executes SELECT querypg_pathman analyzes conditions tree looking for conditions like:
2424

2525
```
2626
VARIABLE OP CONST
@@ -31,22 +31,22 @@ where `VARIABLE` is partitioning key, `OP` is comparison operator (supported ope
3131
WHERE id = 150
3232
```
3333

34-
Based on partitioning type and operator the`pathman` searches corresponding partitions and builds the plan.
34+
Based on partitioning type and operator the`pg_pathman` searches corresponding partitions and builds the plan.
3535

3636
##Installation
3737

38-
To installpathman run in psql:
38+
To installpg_pathman run in psql:
3939
```
4040
CREATE SCHEMA pathman;
41-
CREATE EXTENSIONpathman SCHEMA pathman;
41+
CREATE EXTENSIONpg_pathman SCHEMA pathman;
4242
```
4343
Then modify shared_preload_libraries parameter in postgres.conf as following:
4444
```
45-
shared_preload_libraries = 'pathman'
45+
shared_preload_libraries = 'pg_pathman'
4646
```
4747
It will require to restart the PostgreSQL instance.
4848

49-
##Pathman Functions
49+
##pg_pathman Functions
5050

5151
###Partitions Creation
5252
```
@@ -110,7 +110,7 @@ Prepends new partition with the range equal to the range of the first partition.
110110
```
111111
disable_partitioning(relation TEXT)
112112
```
113-
Disables`pathman` partitioning mechanism for the specified parent table and removes an insert trigger. Partitions itself remain unchanged.
113+
Disables`pg_pathman` partitioning mechanism for the specified parent table and removes an insert trigger. Partitions itself remain unchanged.
114114

115115
##Examples
116116
###HASH

‎contrib/pathman/README.rus.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#pathman
1+
#pg_pathman
22

3-
Модуль`pathman` предоставляет оптимизированный механизм секционирования, а также функции для создания и управления секциями.
3+
Модуль`pg_pathman` предоставляет оптимизированный механизм секционирования, а также функции для создания и управления секциями.
44

5-
##Концепцияpathman
5+
##Концепцияpg_pathman
66

77
Секционирование -- это способ разбиения одной большой таблицы на множество меньших по размеру. Для каждой записи можно однозначно определить секцию, в которой она должна храниться посредством вычисления ключа. Традиционно выделяют три стратегии секционирования:
88

@@ -20,9 +20,9 @@ CREATE TABLE test_2 (CHECK ( id >= 200 AND id < 300 )) INHERITS (test);
2020

2121
Несмотря на гибкость, этот механизм обладает недостатками. Так при фильтрации данных оптимизатор вынужден перебирать все дочерние секции и сравнивать условие запроса с CHECK CONSTRAINT-ами секции, чтобы определить из каких секций ему следует загружать данные. При большом количестве секций это создает дополнительные накладные расходы, которые могут свести на нет выигрыш в производительности от применения секционирования.
2222

23-
Модуль`pathman` предоставляет функции для создания и управления
23+
Модуль`pg_pathman` предоставляет функции для создания и управления
2424
секциями (см. следующий раздел) и механизм секционирования,
25-
оптимизированный с учетом знания о структуре дочерних таблиц. Конфигурация сохраняется таблице`pathman_config`, каждая строка которой содержит запись для одной секционированной таблицы (название таблицы, атрибут и тип разбиения). В процессе инициализации модуля в разделяемую память сохраняется конфигурация дочерних таблиц в удобном для поиска формате. Получив запрос типа`SELECT` к секционированной таблице,`pathman` анализирует дерево условий запроса и выделяет из него условия вида:
25+
оптимизированный с учетом знания о структуре дочерних таблиц. Конфигурация сохраняется таблице`pathman_config`, каждая строка которой содержит запись для одной секционированной таблицы (название таблицы, атрибут и тип разбиения). В процессе инициализации модуля в разделяемую память сохраняется конфигурация дочерних таблиц в удобном для поиска формате. Получив запрос типа`SELECT` к секционированной таблице,`pg_pathman` анализирует дерево условий запроса и выделяет из него условия вида:
2626

2727
```
2828
ПЕРЕМЕННАЯ ОПЕРАТОР КОНСТАНТА
@@ -32,23 +32,23 @@ CREATE TABLE test_2 (CHECK ( id >= 200 AND id < 300 )) INHERITS (test);
3232
```
3333
WHERE id = 150
3434
```
35-
Затем основываясь на стратегии секционирования и условиях запроса`pathman` выбирает соответствующие секции и строит план.
35+
Затем основываясь на стратегии секционирования и условиях запроса`pg_pathman` выбирает соответствующие секции и строит план.
3636

3737
##Installation
3838

39-
Для установкиpathman выполните в командной строке:
39+
Для установкиpg_pathman выполните в командной строке:
4040
```
4141
CREATE SCHEMA pathman;
42-
CREATE EXTENSIONpathman SCHEMA pathman;
42+
CREATE EXTENSIONpg_pathman SCHEMA pathman;
4343
4444
```
4545
Затем модифицируйте параметр shared_preload_libraries в конфигурационном файле postgres.conf:
4646
```
47-
shared_preload_libraries = 'pathman'
47+
shared_preload_libraries = 'pg_pathman'
4848
```
4949
Для вступления изменений в силу потребуется перезагрузка сервера PostgreSQL.
5050

51-
##Функцииpathman
51+
##Функцииpg_pathman
5252

5353
###Создание секций
5454
```
@@ -112,7 +112,7 @@ prepend_partition(p_relation TEXT)
112112
```
113113
disable_partitioning(relation TEXT)
114114
```
115-
Отключает механизм секционирования`pathman` для заданной таблицы и удаляет триггер на вставку. При этом созданные ранее секции остаются без изменений.
115+
Отключает механизм секционирования`pg_pathman` для заданной таблицы и удаляет триггер на вставку. При этом созданные ранее секции остаются без изменений.
116116

117117
##Примеры использования
118118
###HASH

‎contrib/pathman/expected/pathman.outrenamed to‎contrib/pathman/expected/pg_pathman.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
\set VERBOSITY terse
22
CREATE SCHEMA pathman;
3-
CREATE EXTENSIONpathman SCHEMA pathman;
3+
CREATE EXTENSIONpg_pathman SCHEMA pathman;
44
CREATE SCHEMA test;
55
CREATE TABLE test.hash_rel (
66
id SERIAL PRIMARY KEY,

‎contrib/pathman/pathman.control

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

‎contrib/pathman/sql/pathman.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
\set VERBOSITY terse
22

33
CREATESCHEMApathman;
4-
CREATE EXTENSIONpathman SCHEMA pathman;
4+
CREATE EXTENSIONpg_pathman SCHEMA pathman;
55
CREATESCHEMAtest;
66

77
CREATETABLEtest.hash_rel (

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp