Post-migration renaming (#311)

* Post-migration renaming

* Fix typo
pull/209/head
Artem Gavrilov 11 months ago committed by GitHub
parent 74c372aa5f
commit 54af36c922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .github/workflows/postgresql-16-ppg-package-pgxs.yml
  2. 2
      .github/workflows/postgresql-17-src-meson.yml
  3. 2
      .github/workflows/postgresql-pgdg-package-pgxs.yml
  4. 16
      README.md
  5. 679
      configure
  6. 2
      configure.ac
  7. 6
      documentation/docs/contribute.md
  8. 2
      documentation/docs/install.md
  9. 4
      documentation/mkdocs.yml
  10. 2
      expected/non_sorted_off_compact.out
  11. 2
      expected/non_sorted_off_compact_basic.out
  12. 4
      expected/toast_extended_storage.out
  13. 4
      expected/toast_extended_storage_basic.out
  14. 2
      meson.build
  15. 2
      sql/non_sorted_off_compact.inc
  16. 4
      sql/toast_extended_storage.inc
  17. 2
      src/catalog/tde_global_space.c
  18. 2
      src16/access/pg_tdetoast.c
  19. 2
      src17/access/pg_tdetoast.c

@ -147,7 +147,7 @@ jobs:
- name: Publish release - name: Publish release
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
# Only try and deploy on merged code # Only try and deploy on merged code
if: "github.repository == 'Percona-Lab/pg_tde' && github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'schedule')" if: "github.repository == 'percona/pg_tde' && github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'schedule')"
with: with:
artifacts: "pgtde-ppg16.tar.gz,pgtde-ppg16.deb" artifacts: "pgtde-ppg16.tar.gz,pgtde-ppg16.deb"
omitBody: true omitBody: true

@ -37,7 +37,7 @@ jobs:
- name: Clone postgres repository - name: Clone postgres repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
repository: 'percona-lab/postgres' repository: 'percona/postgres'
ref: 'TDE_REL_17_STABLE' ref: 'TDE_REL_17_STABLE'
path: 'src' path: 'src'

@ -156,7 +156,7 @@ jobs:
- name: Publish release - name: Publish release
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
# Only try and deploy on merged code # Only try and deploy on merged code
if: "github.repository == 'Percona-Lab/pg_tde' && github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'schedule')" if: "github.repository == 'percona/pg_tde' && github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'schedule')"
with: with:
artifacts: "pgtde-pgdg${{ matrix.postgresql-version }}.tar.gz,pgtde-pgdg${{ matrix.postgresql-version }}.deb" artifacts: "pgtde-pgdg${{ matrix.postgresql-version }}.tar.gz,pgtde-pgdg${{ matrix.postgresql-version }}.deb"
omitBody: true omitBody: true

@ -1,21 +1,21 @@
# pg_tde # pg_tde
This is an `experimental` encrypted access method for PostgreSQL 16. [We need your feedback!](https://github.com/Percona-Lab/pg_tde/discussions/151) This is an `experimental` encrypted access method for PostgreSQL 16. [We need your feedback!](https://github.com/percona/pg_tde/discussions/151)
## Latest test release ## Latest test release
To download the latest build of the main branch, use the `HEAD` release from [releases](https://github.com/Percona-Lab/pg_tde/releases). To download the latest build of the main branch, use the `HEAD` release from [releases](https://github.com/percona/pg_tde/releases).
Builds are available in a tar.gz format, containing only the required files, and as a deb package. Builds are available in a tar.gz format, containing only the required files, and as a deb package.
The deb package is built against the pgdg16 release, but this dependency is not yet enforced in the package. The deb package is built against the pgdg16 release, but this dependency is not yet enforced in the package.
## Documentation ## Documentation
Find more information about `pg_tde` in the [documentation](https://percona-lab.github.io/pg_tde/). Find more information about `pg_tde` in the [documentation](https://percona.github.io/pg_tde/).
## Installation steps ## Installation steps
1. Build and install the plugin with make [from source](#build-from-source), or download a [release](https://github.com/Percona-Lab/pg_tde/releases) and [install the package](#install-from-package) 1. Build and install the plugin with make [from source](#build-from-source), or download a [release](https://github.com/percona/pg_tde/releases) and [install the package](#install-from-package)
2. `pg_tde` needs to be loaded at the start time. The extension requires additional shared memory; therefore, add the `pg_tde` value for the `shared_preload_libraries` parameter and restart the `postgresql` instance. 2. `pg_tde` needs to be loaded at the start time. The extension requires additional shared memory; therefore, add the `pg_tde` value for the `shared_preload_libraries` parameter and restart the `postgresql` instance.
Use the [ALTER SYSTEM](https://www.postgresql.org/docs/current/sql-altersystem.html) command from `psql` terminal to modify the `shared_preload_libraries` parameter. Use the [ALTER SYSTEM](https://www.postgresql.org/docs/current/sql-altersystem.html) command from `psql` terminal to modify the `shared_preload_libraries` parameter.
@ -114,7 +114,7 @@ brew install make autoconf curl gettext postresql@16
4. Clone the repository, build and install it with the following commands: 4. Clone the repository, build and install it with the following commands:
``` ```
git clone https://github.com/Percona-Lab/pg_tde git clone https://github.com/percona/pg_tde
``` ```
Compile and install the extension Compile and install the extension
@ -131,14 +131,14 @@ PATH=$PATH:/usr/pgsql-16/bin/ make USE_PGXS=1
sudo PATH=$PATH:/usr/pgsql-16/bin/ make USE_PGXS=1 install sudo PATH=$PATH:/usr/pgsql-16/bin/ make USE_PGXS=1 install
``` ```
_See [Make Builds for Developers](https://github.com/Percona-Lab/pg_tde/wiki/Make-builds-for-developers) for more info on the build infrastructure._ _See [Make Builds for Developers](https://github.com/percona/pg_tde/wiki/Make-builds-for-developers) for more info on the build infrastructure._
## Install from package ## Install from package
1. Download the latest [release package](https://github.com/Percona-Lab/pg_tde/releases) 1. Download the latest [release package](https://github.com/percona/pg_tde/releases)
``` sh ``` sh
wget https://github.com/Percona-Lab/pg_tde/releases/download/latest/pgtde-pgdg16.deb wget https://github.com/percona/pg_tde/releases/download/latest/pgtde-pgdg16.deb
``` ```
2. Install the package 2. Install the package

679
configure vendored

File diff suppressed because it is too large Load Diff

@ -1,7 +1,7 @@
# Process this file with autoconf to produce a configure script. # Process this file with autoconf to produce a configure script.
# configure.ac # configure.ac
AC_INIT([pg_tde], [1.0.0-beta2], [https://github.com/Percona-Lab/pg_tde/issues], [pg_tde]) AC_INIT([pg_tde], [1.0.0-beta2], [https://github.com/percona/pg_tde/issues], [pg_tde])
AC_CANONICAL_HOST AC_CANONICAL_HOST

@ -27,7 +27,7 @@ Please make sure to read and agree to our [Code of Conduct](https://github.com/p
## Submitting a pull request ## Submitting a pull request
All bug reports, enhancements and feature requests are tracked in [GitHub issues](https://github.com/Percona-Lab/pg_tde/issues). Though not mandatory, we encourage you to first check for a bug report among the issues and in the PR list: perhaps the bug has already been addressed. All bug reports, enhancements and feature requests are tracked in [GitHub issues](https://github.com/percona/pg_tde/issues). Though not mandatory, we encourage you to first check for a bug report among the issues and in the PR list: perhaps the bug has already been addressed.
For feature requests and enhancements, we do ask you to create a GitHub issue, describe your idea and discuss the design with us. This way we align your ideas with our vision for the product development. For feature requests and enhancements, we do ask you to create a GitHub issue, describe your idea and discuss the design with us. This way we align your ideas with our vision for the product development.
@ -41,7 +41,7 @@ If the bug hasn’t been reported / addressed, or we’ve agreed on the enhancem
- [PostgreSQL coding conventions](https://www.postgresql.org/docs/current/source.html) - [PostgreSQL coding conventions](https://www.postgresql.org/docs/current/source.html)
- [C style and Coding rules](https://github.com/MaJerle/c-code-style) - [C style and Coding rules](https://github.com/MaJerle/c-code-style)
5. [Build `pg_tde`](https://github.com/Percona-Lab/pg_tde/wiki/Make-builds-for-developers) and [test your changes locally](#run-local-tests). 5. [Build `pg_tde`](https://github.com/percona/pg_tde/wiki/Make-builds-for-developers) and [test your changes locally](#run-local-tests).
6. Commit the changes. The [commit message guidelines](https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53) will help you with writing great commit messages 6. Commit the changes. The [commit message guidelines](https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53) will help you with writing great commit messages
7. Open a pull request to Percona. 7. Open a pull request to Percona.
8. Our team will review your code and if everything is correct, will merge it. 8. Our team will review your code and if everything is correct, will merge it.
@ -96,7 +96,7 @@ git clone git@github.com:<your-name>/pg_tde.git
3. Change the directory to ``pg_tde`` and add the remote upstream repository: 3. Change the directory to ``pg_tde`` and add the remote upstream repository:
```sh ```sh
git remote add upstream git@github.com:Percona-Lab/pg_tde.git git remote add upstream git@github.com:percona/pg_tde.git
``` ```
4. Pull the latest changes from upstream 4. Pull the latest changes from upstream

@ -48,7 +48,7 @@ Install `pg_tde` using one of available installation methods:
4. Clone the repository: 4. Clone the repository:
``` ```
git clone git://github.com/Percona-Lab/pg_tde git clone git://github.com/percona/pg_tde
``` ```
5. Compile and install the extension 5. Compile and install the extension

@ -7,8 +7,8 @@ copyright: >
<a href="https://www.percona.com/about">Percona LLC</a> and/or its affiliates © 2023 — <a href="#__consent">Cookie Consent</a> <a href="https://www.percona.com/about">Percona LLC</a> and/or its affiliates © 2023 — <a href="#__consent">Cookie Consent</a>
repo_name: Percona-Lab/pg_tde repo_name: percona/pg_tde
repo_url: https://github.com/Percona-Lab/pg_tde repo_url: https://github.com/percona/pg_tde
edit_uri: edit/main/documentation/docs/ edit_uri: edit/main/documentation/docs/
use_directory_urls: false use_directory_urls: false

@ -1,6 +1,6 @@
\set tde_am tde_heap \set tde_am tde_heap
\i sql/non_sorted_off_compact.inc \i sql/non_sorted_off_compact.inc
-- A test case for https://github.com/Percona-Lab/pg_tde/pull/21 -- A test case for https://github.com/percona/pg_tde/pull/21
-- --
CREATE EXTENSION pg_tde; CREATE EXTENSION pg_tde;
SELECT pg_tde_add_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per'); SELECT pg_tde_add_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per');

@ -1,6 +1,6 @@
\set tde_am tde_heap_basic \set tde_am tde_heap_basic
\i sql/non_sorted_off_compact.inc \i sql/non_sorted_off_compact.inc
-- A test case for https://github.com/Percona-Lab/pg_tde/pull/21 -- A test case for https://github.com/percona/pg_tde/pull/21
-- --
CREATE EXTENSION pg_tde; CREATE EXTENSION pg_tde;
SELECT pg_tde_add_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per'); SELECT pg_tde_add_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per');

@ -1,6 +1,6 @@
\set tde_am tde_heap \set tde_am tde_heap
\i sql/toast_extended_storage.inc \i sql/toast_extended_storage.inc
-- test https://github.com/Percona-Lab/pg_tde/issues/63 -- test https://github.com/percona/pg_tde/issues/63
CREATE EXTENSION pg_tde; CREATE EXTENSION pg_tde;
SELECT pg_tde_add_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per'); SELECT pg_tde_add_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per');
pg_tde_add_key_provider_file pg_tde_add_key_provider_file
@ -35,7 +35,7 @@ SELECT * FROM src2;
(1 row) (1 row)
DROP TABLE src2; DROP TABLE src2;
-- https://github.com/Percona-Lab/pg_tde/issues/82 -- https://github.com/percona/pg_tde/issues/82
CREATE TABLE indtoasttest(descr text, cnt int DEFAULT 0, f1 text, f2 text) using :tde_am; CREATE TABLE indtoasttest(descr text, cnt int DEFAULT 0, f1 text, f2 text) using :tde_am;
INSERT INTO indtoasttest(descr, f1, f2) VALUES('two-compressed', repeat('1234567890',1000), repeat('1234567890',1000)); INSERT INTO indtoasttest(descr, f1, f2) VALUES('two-compressed', repeat('1234567890',1000), repeat('1234567890',1000));
INSERT INTO indtoasttest(descr, f1, f2) VALUES('two-toasted', repeat('1234567890',30000), repeat('1234567890',50000)); INSERT INTO indtoasttest(descr, f1, f2) VALUES('two-toasted', repeat('1234567890',30000), repeat('1234567890',50000));

@ -1,6 +1,6 @@
\set tde_am tde_heap_basic \set tde_am tde_heap_basic
\i sql/toast_extended_storage.inc \i sql/toast_extended_storage.inc
-- test https://github.com/Percona-Lab/pg_tde/issues/63 -- test https://github.com/percona/pg_tde/issues/63
CREATE EXTENSION pg_tde; CREATE EXTENSION pg_tde;
SELECT pg_tde_add_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per'); SELECT pg_tde_add_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per');
pg_tde_add_key_provider_file pg_tde_add_key_provider_file
@ -35,7 +35,7 @@ SELECT * FROM src2;
(1 row) (1 row)
DROP TABLE src2; DROP TABLE src2;
-- https://github.com/Percona-Lab/pg_tde/issues/82 -- https://github.com/percona/pg_tde/issues/82
CREATE TABLE indtoasttest(descr text, cnt int DEFAULT 0, f1 text, f2 text) using :tde_am; CREATE TABLE indtoasttest(descr text, cnt int DEFAULT 0, f1 text, f2 text) using :tde_am;
INSERT INTO indtoasttest(descr, f1, f2) VALUES('two-compressed', repeat('1234567890',1000), repeat('1234567890',1000)); INSERT INTO indtoasttest(descr, f1, f2) VALUES('two-compressed', repeat('1234567890',1000), repeat('1234567890',1000));
INSERT INTO indtoasttest(descr, f1, f2) VALUES('two-toasted', repeat('1234567890',30000), repeat('1234567890',50000)); INSERT INTO indtoasttest(descr, f1, f2) VALUES('two-toasted', repeat('1234567890',30000), repeat('1234567890',50000));

@ -5,7 +5,7 @@ pg_tde_version = '1.0.0-beta2'
conf_data = configuration_data() conf_data = configuration_data()
conf_data.set_quoted('PACKAGE_NAME', 'pg_tde') conf_data.set_quoted('PACKAGE_NAME', 'pg_tde')
conf_data.set_quoted('PACKAGE_BUGREPORT', 'https://github.com/Percona-Lab/pg_tde/issues') conf_data.set_quoted('PACKAGE_BUGREPORT', 'https://github.com/percona/pg_tde/issues')
conf_data.set_quoted('PACKAGE_VERSION', pg_tde_version) conf_data.set_quoted('PACKAGE_VERSION', pg_tde_version)
conf_data.set_quoted('PACKAGE_STRING', 'pg_tde ' + pg_tde_version) conf_data.set_quoted('PACKAGE_STRING', 'pg_tde ' + pg_tde_version)
conf_data.set_quoted('PACKAGE_TARNAME', 'pg_tde') conf_data.set_quoted('PACKAGE_TARNAME', 'pg_tde')

@ -1,4 +1,4 @@
-- A test case for https://github.com/Percona-Lab/pg_tde/pull/21 -- A test case for https://github.com/percona/pg_tde/pull/21
-- --
CREATE EXTENSION pg_tde; CREATE EXTENSION pg_tde;

@ -1,4 +1,4 @@
-- test https://github.com/Percona-Lab/pg_tde/issues/63 -- test https://github.com/percona/pg_tde/issues/63
CREATE EXTENSION pg_tde; CREATE EXTENSION pg_tde;
SELECT pg_tde_add_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per'); SELECT pg_tde_add_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per');
@ -19,7 +19,7 @@ SELECT * FROM src2;
DROP TABLE src2; DROP TABLE src2;
-- https://github.com/Percona-Lab/pg_tde/issues/82 -- https://github.com/percona/pg_tde/issues/82
CREATE TABLE indtoasttest(descr text, cnt int DEFAULT 0, f1 text, f2 text) using :tde_am; CREATE TABLE indtoasttest(descr text, cnt int DEFAULT 0, f1 text, f2 text) using :tde_am;
INSERT INTO indtoasttest(descr, f1, f2) VALUES('two-compressed', repeat('1234567890',1000), repeat('1234567890',1000)); INSERT INTO indtoasttest(descr, f1, f2) VALUES('two-compressed', repeat('1234567890',1000), repeat('1234567890',1000));

@ -76,7 +76,7 @@ TDEInitGlobalKeys(const char *dir)
* current backend. So new backends have to inherit a cached key with * current backend. So new backends have to inherit a cached key with
* NULL SSL connext and any changes to it have to remain local ot the * NULL SSL connext and any changes to it have to remain local ot the
* backend. (see * backend. (see
* https://github.com/Percona-Lab/pg_tde/pull/214#discussion_r1648998317) * https://github.com/percona-Lab/pg_tde/pull/214#discussion_r1648998317)
*/ */
pg_tde_put_key_into_cache(XLOG_TDE_OID, ikey); pg_tde_put_key_into_cache(XLOG_TDE_OID, ikey);
} }

@ -852,7 +852,7 @@ tdeheap_toast_encrypt(Pointer dval, Oid valueid, RelKeyData *key)
/* /*
* Encryption specific data_p and data_size as we have to avoid * Encryption specific data_p and data_size as we have to avoid
* encryption of the compression info. * encryption of the compression info.
* See https://github.com/Percona-Lab/pg_tde/commit/dee6e357ef05d217a4c4df131249a80e5e909163 * See https://github.com/percona/pg_tde/commit/dee6e357ef05d217a4c4df131249a80e5e909163
*/ */
if (VARATT_IS_SHORT(dval)) if (VARATT_IS_SHORT(dval))
{ {

@ -852,7 +852,7 @@ tdeheap_toast_encrypt(Pointer dval, Oid valueid, RelKeyData *key)
/* /*
* Encryption specific data_p and data_size as we have to avoid * Encryption specific data_p and data_size as we have to avoid
* encryption of the compression info. * encryption of the compression info.
* See https://github.com/Percona-Lab/pg_tde/commit/dee6e357ef05d217a4c4df131249a80e5e909163 * See https://github.com/percona/pg_tde/commit/dee6e357ef05d217a4c4df131249a80e5e909163
*/ */
if (VARATT_IS_SHORT(dval)) if (VARATT_IS_SHORT(dval))
{ {

Loading…
Cancel
Save