Skip to content

Commit 76f2382

Browse files
committed
fix: use pg_ivm (with underscore) only for the sql_name
Comply with conventions adopted when onboarding other extensions that contain underscores, such as pg_crash. Rename the extension's main folder in this project to `pg-ivm`, as well as `metadata.name` and `metadata.image_name`. As a result, the container image will be `ghcr.io/cloudnative-pg/pg-ivm`. It remains possible to use `pg_ivm` as a name when defining the extension's name in the Cluster's stanza. Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
1 parent 7fc1949 commit 76f2382

File tree

10 files changed

+7
-7
lines changed

10 files changed

+7
-7
lines changed
File renamed without changes.

pg_ivm/README.md renamed to pg-ivm/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pg_ivm
1+
# `pg_ivm`
22

33
[pg_ivm](https://github.com/sraoss/pg_ivm) is an open-source extension
44
that provides **Incremental View Maintenance (IVM)** for PostgreSQL, allowing
@@ -15,7 +15,7 @@ your `Cluster` resource. For example:
1515
apiVersion: postgresql.cnpg.io/v1
1616
kind: Cluster
1717
metadata:
18-
name: cluster-pg_ivm
18+
name: cluster-pg-ivm
1919
spec:
2020
imageName: ghcr.io/cloudnative-pg/postgresql:18-minimal-trixie
2121
instances: 1
@@ -28,7 +28,7 @@ spec:
2828
- name: pg_ivm
2929
image:
3030
# renovate: suite=trixie-pgdg depName=postgresql-18-pg-ivm
31-
reference: ghcr.io/cloudnative-pg/pg_ivm:1.13-18-trixie
31+
reference: ghcr.io/cloudnative-pg/pg-ivm:1.13-18-trixie
3232
```
3333
3434
### 2. Enable the extension in a database
@@ -40,12 +40,12 @@ You can install `pg_ivm` in a specific database by creating or updating a
4040
apiVersion: postgresql.cnpg.io/v1
4141
kind: Database
4242
metadata:
43-
name: cluster-pg_ivm-app
43+
name: cluster-pg-ivm-app
4444
spec:
4545
name: app
4646
owner: app
4747
cluster:
48-
name: cluster-pg_ivm
48+
name: cluster-pg-ivm
4949
extensions:
5050
- name: pg_ivm
5151
# renovate: suite=trixie-pgdg depName=postgresql-18-pg-ivm extractVersion=^(?<version>\d+\.\d+)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
metadata = {
2-
name = "pg_ivm"
2+
name = "pg-ivm"
33
sql_name = "pg_ivm"
4-
image_name = "pg_ivm"
4+
image_name = "pg-ivm"
55
licenses = ["PostgreSQL"]
66
shared_preload_libraries = []
77
postgresql_parameters = {}

0 commit comments

Comments
 (0)