From 834709521a6b6c44af2f70e77246d2b7ffca5e5d Mon Sep 17 00:00:00 2001 From: Robin Portigliatti Date: Thu, 24 Oct 2024 18:27:31 +0200 Subject: [PATCH] Changing name to pg_restore_points --- Makefile | 6 +++--- README.md | 8 ++++---- ...nts_test.out => pg_restore_points_test.out} | 2 +- nfpm/17/deb.yaml | 14 +++++++------- nfpm/17/rpm.yaml | 18 +++++++----------- ...ints--1.0.sql => pg_restore_points--1.0.sql | 0 ...ints--1.1.sql => pg_restore_points--1.1.sql | 0 ...ints--1.2.sql => pg_restore_points--1.2.sql | 0 ...ints--1.3.sql => pg_restore_points--1.3.sql | 0 ...ints--1.4.sql => pg_restore_points--1.4.sql | 0 ...ints--1.5.sql => pg_restore_points--1.5.sql | 0 ...points.control => pg_restore_points.control | 2 +- ..._purge.bash => pg_restore_points_purge.bash | 0 ...nts_test.sql => pg_restore_points_test.sql} | 2 +- 14 files changed, 24 insertions(+), 28 deletions(-) rename expected/{restore_points_test.out => pg_restore_points_test.out} (97%) rename restore_points--1.0.sql => pg_restore_points--1.0.sql (100%) rename restore_points--1.1.sql => pg_restore_points--1.1.sql (100%) rename restore_points--1.2.sql => pg_restore_points--1.2.sql (100%) rename restore_points--1.3.sql => pg_restore_points--1.3.sql (100%) rename restore_points--1.4.sql => pg_restore_points--1.4.sql (100%) rename restore_points--1.5.sql => pg_restore_points--1.5.sql (100%) rename restore_points.control => pg_restore_points.control (73%) rename restore_points_purge.bash => pg_restore_points_purge.bash (100%) rename sql/{restore_points_test.sql => pg_restore_points_test.sql} (96%) diff --git a/Makefile b/Makefile index 1a3f883..950f2c6 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ # Makefile -EXTENSION = restore_points -DATA = restore_points--1.5.sql +EXTENSION = pg_restore_points +DATA = pg_restore_points--1.5.sql DOCS = README.md # List of SQL test files to run -REGRESS = restore_points_test +REGRESS = pg_restore_points_test # Configuration for PostgreSQL PG_CONFIG = pg_config diff --git a/README.md b/README.md index c4b3a65..dbc9606 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# restore_points +# pg_restore_points ## Description -`restore_points` is a PostgreSQL extension that allows managing restore points in a PostgreSQL instance. It creates a schema, table, sequence, and function to facilitate the management and tracking of restore points. +`pg_restore_points` is a PostgreSQL extension that allows managing restore points in a PostgreSQL instance. It creates a schema, table, sequence, and function to facilitate the management and tracking of restore points. ### Features @@ -25,7 +25,7 @@ 2. In PostgreSQL, create the extension: ```sql - CREATE EXTENSION restore_points; + CREATE EXTENSION pg_restore_points; ``` ### Usage @@ -51,7 +51,7 @@ SELECT * FROM rspt.restore_points; ### Restore Point Purging Function -The `restore_points` extension also provides a function to purge restore points older than a specified time interval. +The `pg_restore_points` extension also provides a function to purge restore points older than a specified time interval. #### Function `rspt.pg_purge_restore_points` diff --git a/expected/restore_points_test.out b/expected/pg_restore_points_test.out similarity index 97% rename from expected/restore_points_test.out rename to expected/pg_restore_points_test.out index 46aec09..b8e6069 100644 --- a/expected/restore_points_test.out +++ b/expected/pg_restore_points_test.out @@ -1,5 +1,5 @@ -- Load the extension -CREATE EXTENSION IF NOT EXISTS restore_points; +CREATE EXTENSION IF NOT EXISTS pg_restore_points; -- Test: Create a restore point with NOSTRICT mode SELECT rspt.pg_create_restore_point('test_point_nostrict') = true; ?column? diff --git a/nfpm/17/deb.yaml b/nfpm/17/deb.yaml index c349afb..b59cc43 100644 --- a/nfpm/17/deb.yaml +++ b/nfpm/17/deb.yaml @@ -2,28 +2,28 @@ # # check https://nfpm.goreleaser.com/configuration for detailed usage # -name: "restore_points_17" +name: "pg_restore_points_17" arch: "amd64" platform: "linux" version: "v1.5" section: "database" priority: "optional" provides: -- restore_points_17 +- pg_restore_points_17 maintainer: "Robin Portigliatti " description: | - `restore_points` is a PostgreSQL extension that allows managing restore points in a PostgreSQL instance. It creates a schema, table, sequence, and function to facilitate the management and tracking of restore points. + `pg_restore_points` is a PostgreSQL extension that allows managing restore points in a PostgreSQL instance. It creates a schema, table, sequence, and function to facilitate the management and tracking of restore points. homepage: "https://dalibo.com/" license: "Apache License 2.0" contents: - - src: ./restore_points--1.5.sql - dst: /usr/share/postgresql/17/extension/restore_points--1.5.sql + - src: ./pg_restore_points--1.5.sql + dst: /usr/share/postgresql/17/extension/pg_restore_points--1.5.sql file_info: mode: 0644 owner: postgres group: postgres - - src: ./restore_points.control - dst: /usr/share/postgresql/17/extension/restore_points.control + - src: ./pg_restore_points.control + dst: /usr/share/postgresql/17/extension/pg_restore_points.control file_info: mode: 0644 owner: postgres diff --git a/nfpm/17/rpm.yaml b/nfpm/17/rpm.yaml index 25271b6..2f58563 100644 --- a/nfpm/17/rpm.yaml +++ b/nfpm/17/rpm.yaml @@ -2,29 +2,25 @@ # # check https://nfpm.goreleaser.com/configuration for detailed usage # -name: "restore_points_17" +name: "pg_restore_points_17" arch: "amd64" platform: "linux" version: "v1.5" section: "database" priority: "optional" provides: -- restore_points_17 +- pg_restore_points_17 maintainer: "Robin Portigliatti " description: | - `restore_points` is a PostgreSQL extension that allows managing restore points in a PostgreSQL instance. It creates a schema, table, sequence, and function to facilitate the management and tracking of restore points. + `pg_restore_points` is a PostgreSQL extension that allows managing restore points in a PostgreSQL instance. It creates a schema, table, sequence, and function to facilitate the management and tracking of restore points. homepage: "https://dalibo.com/" license: "Apache License 2.0" contents: - - src: ./restore_points--1.5.sql - dst: /usr/pgsql-17/share/extension/restore_points--1.5.sql + - src: ./pg_restore_points--1.5.sql + dst: /usr/pgsql-17/share/extension/pg_restore_points--1.5.sql file_info: mode: 0644 - owner: postgres - group: postgres - - src: ./restore_points.control - dst: /usr/pgsql-17/share/extension/restore_points.control + - src: ./pg_restore_points.control + dst: /usr/pgsql-17/share/extension/pg_restore_points.control file_info: mode: 0644 - owner: postgres - group: postgres diff --git a/restore_points--1.0.sql b/pg_restore_points--1.0.sql similarity index 100% rename from restore_points--1.0.sql rename to pg_restore_points--1.0.sql diff --git a/restore_points--1.1.sql b/pg_restore_points--1.1.sql similarity index 100% rename from restore_points--1.1.sql rename to pg_restore_points--1.1.sql diff --git a/restore_points--1.2.sql b/pg_restore_points--1.2.sql similarity index 100% rename from restore_points--1.2.sql rename to pg_restore_points--1.2.sql diff --git a/restore_points--1.3.sql b/pg_restore_points--1.3.sql similarity index 100% rename from restore_points--1.3.sql rename to pg_restore_points--1.3.sql diff --git a/restore_points--1.4.sql b/pg_restore_points--1.4.sql similarity index 100% rename from restore_points--1.4.sql rename to pg_restore_points--1.4.sql diff --git a/restore_points--1.5.sql b/pg_restore_points--1.5.sql similarity index 100% rename from restore_points--1.5.sql rename to pg_restore_points--1.5.sql diff --git a/restore_points.control b/pg_restore_points.control similarity index 73% rename from restore_points.control rename to pg_restore_points.control index 466483b..cdb733b 100644 --- a/restore_points.control +++ b/pg_restore_points.control @@ -1,4 +1,4 @@ -# File restore_points.control +# File pg_restore_points.control comment = 'Extension for managing restore points' default_version = '1.5' schema = 'rspt' diff --git a/restore_points_purge.bash b/pg_restore_points_purge.bash similarity index 100% rename from restore_points_purge.bash rename to pg_restore_points_purge.bash diff --git a/sql/restore_points_test.sql b/sql/pg_restore_points_test.sql similarity index 96% rename from sql/restore_points_test.sql rename to sql/pg_restore_points_test.sql index 8a38700..7bdb490 100644 --- a/sql/restore_points_test.sql +++ b/sql/pg_restore_points_test.sql @@ -1,5 +1,5 @@ -- Load the extension -CREATE EXTENSION IF NOT EXISTS restore_points; +CREATE EXTENSION IF NOT EXISTS pg_restore_points; -- Test: Create a restore point with NOSTRICT mode SELECT rspt.pg_create_restore_point('test_point_nostrict') = true;