Skip to content

Commit

Permalink
Merge pull request #4 from robinportigliatti/main
Browse files Browse the repository at this point in the history
Changing name to pg_restore_points
  • Loading branch information
robinportigliatti authored Oct 24, 2024
2 parents bc43eee + 8347095 commit db8a588
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 28 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -25,7 +25,7 @@
2. In PostgreSQL, create the extension:

```sql
CREATE EXTENSION restore_points;
CREATE EXTENSION pg_restore_points;
```

### Usage
Expand All @@ -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`

Expand Down
Original file line number Diff line number Diff line change
@@ -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?
Expand Down
14 changes: 7 additions & 7 deletions nfpm/17/deb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"
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
Expand Down
18 changes: 7 additions & 11 deletions nfpm/17/rpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion restore_points.control → pg_restore_points.control
Original file line number Diff line number Diff line change
@@ -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'
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit db8a588

Please sign in to comment.