Skip to content

Commit 9c3a9a2

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 9c3a9a2

12 files changed

Lines changed: 13 additions & 12 deletions

.github/workflows/bake.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
- postgis
1414
- pgaudit
1515
- pg-crash
16-
- pg_ivm
16+
- pg-ivm
1717

1818
defaults:
1919
run:
@@ -56,8 +56,8 @@ jobs:
5656
pg-crash:
5757
- 'pg-crash/**'
5858
- *shared
59-
pg_ivm:
60-
- 'pg_ivm/**'
59+
pg-ivm:
60+
- 'pg-ivm/**'
6161
- *shared
6262
6363
# Compute a matrix containing the list of all extensions that have been modified

CODEOWNERS

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
# https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-code-owners
44

55
* @cloudnative-pg/maintainers @NiccoloFei
6-
# pg_ivm
7-
/pg_ivm/ @shusaan @cloudnative-pg/maintainers @NiccoloFei
6+
7+
# pg-ivm
8+
/pg-ivm/ @shusaan @cloudnative-pg/maintainers @NiccoloFei
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)