Skip to content

Commit 5286976

Browse files
authored
Create README.md
Add project description, a list of all functions which will be added in the first batch and a guide on how to create these functions in your database.
1 parent a365e7e commit 5286976

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# 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 possible, the weakest lock possible is being used, when a heavy lock is required we use a timeout to prevent long lasting locks.
3+
4+
Every function in this project starts with a detailed comment on what function does and how to use it.
5+
6+
# Features
7+
The functions in this project can
8+
9+
- Partition an existing table. The origional table will not partitioned itself, but becomes the first partition
10+
- Add indexes to a partitioned table and all children
11+
- Add foreign keys to a partitioned table and all children
12+
- Add date constraints to a table partitioned on an integer column
13+
- Count the number of available, unused partitions
14+
- Get the details for the last partition
15+
- Add new partitions to a partitioned table. The new partitions will have the same properties as the latest available partition
16+
- Detach partitions from a partitioned table
17+
- Drop detached partitions
18+
19+
# Installation
20+
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
21+
```sql
22+
\i <full path to the function>.<filename>.sql
23+
```
24+
N.B. Some functions use other functions.

0 commit comments

Comments
 (0)