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