From a6bf261f6b2ab196fa1be436a1a3e80c60737f7e Mon Sep 17 00:00:00 2001 From: Charles Arnault Date: Wed, 11 Sep 2024 15:50:52 +0200 Subject: [PATCH 1/2] chore(README): correct partitionKey field Signed-off-by: Damien Cupif --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 031e6db..a1ff217 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ PPM will process all referenced partitions and exit with a non-zero code if it d | ------------------ | ----------------------------------------- | ----------------- | | daily | `__
_` | `logs_2024_06_25` | | weekly | `_w` | `logs_2024_w26` | - | quarterly | `__q` | `logs_2024_q1` | + | quarterly | `__q` | `logs_2024_q1` | | monthly | `__` | `logs_2024_06` | | yearly | `_` | `logs_2024` | @@ -239,14 +239,14 @@ Configuration could be defined in `postgresql-partition-manager.yaml` or environ Partition object: -| Parameter | Description | Default | -| -------------- | ---------------------------------------------------- | ------- | -| column | Column used for partitioning | | -| interval | Partitioning interval (`daily`, `weekly`, `monthly`, `quarterly` or `yearly`) | | -| preProvisioned | Number of partitions to create in advance | | -| retention | Number of partitions to retain | | -| schema | PostgreSQL schema | | -| table | Table to be partitioned | | +| Parameter | Description | Default | +| -------------- | ----------------------------------------------------------------------------------------------------- | ------- | +| partitionKey | Column used for partitioning | | +| interval | Partitioning interval (`daily`, `weekly`, `monthly`, `quarterly` or `yearly`) | | +| preProvisioned | Number of partitions to create in advance | | +| retention | Number of partitions to retain | | +| schema | PostgreSQL schema | | +| table | Table to be partitioned | | | cleanupPolicy | `detach` refers to detaching only the partition while `drop` refers to both detaching and dropping it | | See the [full configuration file](configs/postgresql-partition-manager/postgresql-partition-manager.yaml). From 9d4699a26dbc74770f5532b7f167ee0f619b4c18 Mon Sep 17 00:00:00 2001 From: Damien Cupif Date: Thu, 10 Oct 2024 09:37:57 +0200 Subject: [PATCH 2/2] fix(linter): issues Signed-off-by: Damien Cupif --- pkg/ppm/mocks/PostgreSQLClient.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/ppm/mocks/PostgreSQLClient.go b/pkg/ppm/mocks/PostgreSQLClient.go index 329d4fd..d5c94d9 100644 --- a/pkg/ppm/mocks/PostgreSQLClient.go +++ b/pkg/ppm/mocks/PostgreSQLClient.go @@ -266,7 +266,8 @@ func (_m *PostgreSQLClient) ListPartitions(schema string, table string) ([]postg func NewPostgreSQLClient(t interface { mock.TestingT Cleanup(func()) -}) *PostgreSQLClient { +}, +) *PostgreSQLClient { mock := &PostgreSQLClient{} mock.Mock.Test(t)