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
These functions are designed to create and maintain partitions in PostgreSQL with a minimal impact on the applicaton. The priority is to not impact the application. When multiple options are available the weakest lock possible is being used, when a heavy lock is required we use a timeout to prevent long lasting locks.
2
+
These functions are designed to create and maintain partitions in PostgreSQL with a minimal impact on the applicaton. The priority is to not impact the application. When multiple options are available the weakest lock possible is being used, when a heavy lock is required we use a timeout to prevent long lasting locks.
3
3
4
-
Every function in this project starts with a detailed comment on what function does and how to use it.
4
+
Every function in this project starts with a detailed comment on what the function does and how to use it.
5
5
6
-
# Features
6
+
## Contributing
7
+
We strongly encourage you to contribute to our repository. Find out more in our [contribution guidelines](https://github.com/Adyen/.github/blob/master/CONTRIBUTING.md)
8
+
9
+
## Requirements
10
+
All function have been tested on postgres 13.
11
+
12
+
## Installation
13
+
All function will be installed in the DBA schema. If you don't have this schema yet, create it by running sql/schema/schema.sql.
14
+
15
+
You can add the individual functions directly on the database from `psql` with the `\i` command. Use `psql` to login on your database and run
16
+
```sql
17
+
\i <full path to the function>.<filename>.sql
18
+
```
19
+
N.B. Some functions use other functions and the script `partition_maintenance.sql` requires a set of tables to be created.
20
+
21
+
### Install all functions
22
+
To create all the functions and the tables required to configure maintenance apply the following scripts in order from the root directory of the project
23
+
sql/schema/schema.sql
24
+
sql/tables/tables.sql
25
+
sql/functions/create_all_functions.sql
26
+
27
+
### Test functions
28
+
To test all functions run the following scripts from the project root folder
29
+
test/tables.sql
30
+
test/run_functions.sql
31
+
test/configuration.sql
32
+
test/cleanup.sql
33
+
34
+
## Usage
35
+
The functions can be called as any other postgres function
- Partition an existing table. The origional table will not partitioned itself, but becomes the first partition
@@ -28,24 +62,8 @@ The scripts performs the following tasks based on the configuration in the table
28
62
29
63
See the documentation within sql/tables/tables.sql for the configuration details.
30
64
31
-
# Installation
32
-
All function will be installed in the DBA schema. If you don't have this schema yet, create it by running sql/schema/schema.sql.
33
-
34
-
You can add the individual functions directly on the database from `psql` with the `\i` command. Use `psql` to login on your database and run
35
-
```sql
36
-
\i <full path to the function>.<filename>.sql
37
-
```
38
-
N.B. Some functions use other functions and the script `partition_maintenance.sql` requires a set of tables to be created.
65
+
## Support
66
+
If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue.
39
67
40
-
## Install all functions
41
-
To create all the functions and the tables required to configure maintenance apply the following scripts in order from the root directory of the project
42
-
sql/schema/schema.sql
43
-
sql/tables/tables.sql
44
-
sql/functions/create_all_functions.sql
45
-
46
-
## Test functions
47
-
To test all functions run the following scripts from the project root folder
48
-
test/tables.sql
49
-
test/run_functions.sql
50
-
test/configuration.sql
51
-
test/cleanup.sql
68
+
## License
69
+
MIT license. For more information, see the LICENSE file.
0 commit comments