Skip to content

Commit bcbf528

Browse files
author
derkv
committed
README with official formatting
1 parent eeebfe6 commit bcbf528

File tree

1 file changed

+41
-23
lines changed

1 file changed

+41
-23
lines changed

README.md

Lines changed: 41 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,43 @@
11
# adyen-postgres-partitioning
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.
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.
33

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.
55

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
36+
```sql
37+
select dba.<function_name>(arg1, arg2, ..., argN);
38+
```
39+
40+
## Documentation
741
The functions in this project can
842

943
- 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
2862

2963
See the documentation within sql/tables/tables.sql for the configuration details.
3064

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.
3967

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

Comments
 (0)