You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### NOTE: this project is not under development anymore
7
7
8
-
`pg_pathman` supports Postgres versions [9.5..12], but most probably it won't be ported to 13 and later releases. [Native partitioning](https://www.postgresql.org/docs/current/ddl-partitioning.html) is pretty mature now and has almost everything implemented in `pg_pathman`'; we encourage users switching to it. We are still maintaining the project (fixing bugs in supported versions), but no new development is going to happen here.
8
+
`pg_pathman` supports Postgres versions [11..15], but most probably it won't be ported to later releases. [Native partitioning](https://www.postgresql.org/docs/current/ddl-partitioning.html) is pretty mature now and has almost everything implemented in `pg_pathman`'; we encourage users switching to it. We are still maintaining the project (fixing bugs in supported versions), but no new development is going to happen here.
9
9
10
10
# pg_pathman
11
11
12
12
The `pg_pathman` module provides optimized partitioning mechanism and functions to manage partitions.
13
13
14
14
The extension is compatible with:
15
15
16
-
* PostgreSQL 9.5, 9.6, 10, 11, 12;
17
-
* Postgres Pro Standard 9.5, 9.6, 10, 11, 12;
16
+
* PostgreSQL 12, 13;
17
+
* PostgreSQL with core-patch: 11, 14, 15;
18
+
* Postgres Pro Standard 11, 12, 13, 14, 15;
18
19
* Postgres Pro Enterprise;
19
20
20
21
Take a look at our Wiki [out there](https://github.com/postgrespro/pg_pathman/wiki).
It is essential to restart the PostgreSQL instance. After that, execute the following query in psql:
97
98
```plpgsql
98
-
CREATE EXTENSION pg_pathman;
99
+
CREATESCHEMApathman;
100
+
GRANT USAGE ON SCHEMA pathman TO PUBLIC;
101
+
CREATE EXTENSION pg_pathman WITH SCHEMA pathman;
99
102
```
100
103
101
104
Done! Now it's time to setup your partitioning schemes.
102
105
106
+
> **Security notice**: pg_pathman is believed to be secure against
107
+
search-path-based attacks mentioned in Postgres
108
+
[documentation](https://www.postgresql.org/docs/current/sql-createextension.html). However,
109
+
if *your* calls of pathman's functions doesn't exactly match the signature, they
110
+
might be vulnerable to malicious overloading. If in doubt, install pathman to clean schema where nobody except superusers have CREATE object permission to avoid problems.
111
+
103
112
> **Windows-specific**: pg_pathman imports several symbols (e.g. None_Receiver, InvalidObjectAddress) from PostgreSQL, which is fine by itself, but requires that those symbols are marked as `PGDLLIMPORT`. Unfortunately, some of them are not exported from vanilla PostgreSQL, which means that you have to either use Postgres Pro Standard/Enterprise (which includes all necessary patches), or patch and build your own distribution of PostgreSQL.
104
113
105
114
## How to update
@@ -611,7 +620,7 @@ SELECT tableoid::regclass AS partition, * FROM partitioned_table;
611
620
- All running concurrent partitioning tasks can be listed using the `pathman_concurrent_part_tasks` view:
0 commit comments