8000 Fix whitespace in all non-Markdown files by jeltz · Pull Request #314 · percona/postgres · GitHub
[go: up one dir, main page]

Skip to content

Fix whitespace in all non-Markdown files #314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,3 @@ jobs:
src/test/*/results
src/test/*/tmp_check
retention-days: 3


1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ Specific - include as much detail as possible, such as which version, which envi
Unique - do not duplicate existing tickets

Scoped to a single issue - only one issue per report

11 changes: 4 additions & 7 deletions contrib/pg_tde/documentation/_resource/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% extends "base.html" %}

{% block announce %}
This is a Release Candidate of Percona Transparent Data Encryption extension and it is
This is a Release Candidate of Percona Transparent Data Encryption extension and it is
<strong>not recommended for production environments</strong> yet. We encourage you to test it and <a href= "https://forums.percona.com/c/postgresql/pg-tde-transparent-data-encryption-tde/82">give your feedback</a>.
This will help us improve the product and make it production-ready faster.
{% endblock %}
Expand All @@ -13,7 +13,7 @@
<script src="https://cmp.osano.com/Azqe5vTyLOSbN3OuT/49ad85b5-0418-4794-ab81-7599dddd534c/osano.js"></script>
{{ super() }}
{% endblock %}

{% block extrahead %}
{{ super() }}
{% set title = config.site_name %}
Expand All @@ -27,7 +27,7 @@
<meta property="og:image" content="https://docs.percona.com/pg-tde/_images/pg_tde.png">
<meta property="og:url" content="https://docs.percona.com/pg-tde/">
{% endblock %}

{% block site_nav %}
{% if nav %}
{% if page.meta and page.meta.hide %}
Expand All @@ -39,7 +39,7 @@
{% include "partials/nav.html" %}
<br>
<label class="md-nav__title" for="__drawer">
</label>
</label>
</div>
</div>
</div>
Expand All @@ -64,6 +64,3 @@
posthog.init('phc_7unoI9J6Fm0SMrfDp35xNOpCRTkOAibbffQwdGWbHnL',{api_host:'https://eu.posthog.com'})
</script>
{% endblock %}



Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

<a href="https://docs.percona.com/pg-stat-monitor/get-help.html" style="color: var(--md-typeset-a-color);">Get help from Percona</a>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
Material for MkDocs
</a>
{% endif %}
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@
{% include "partials/tabs.html" %}
{% endif %}
{% endif %}
</header>
</header>
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ article div.tabbed-content--wrap * {
.md-typeset details.note {
color: #00162b;
border-color: #fff;
}
}
4 changes: 2 additions & 2 deletions contrib/pg_tde/documentation/docs/css/design.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

/* Accent */
--md-accent-fg-color: var(--sky500);

/* Footer */
--md-footer-fg-color: var(--stone900);
--md-footer-fg-color--light: rgba(44,50,62,0.72);
Expand Down Expand Up @@ -732,4 +732,4 @@ i[warning] [class*="moji"] {
padding: 1em;
}
}
/**/
/**/
4 changes: 2 additions & 2 deletions contrib/pg_tde/documentation/docs/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
left: 0.6rem;
}

}
}

.md-sidebar__inner {
font-size: 0.65rem; /* Font size */
line-height: 1.6;
}
}
5 changes: 2 additions & 3 deletions contrib/pg_tde/documentation/docs/css/landing.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* Type */

.landing h1,
Expand Down Expand Up @@ -250,7 +249,7 @@ a.splash-card img {
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
max-height: 2.8em;
Expand Down Expand Up @@ -298,4 +297,4 @@ a.splash-card img {
[data-news] [data-article] {
flex: 1 1 100%;
}
}
}
4 changes: 2 additions & 2 deletions contrib/pg_tde/documentation/docs/css/osano.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
.osano-cm-dialog {
font-size: 0.75em;
padding: 2em 1em;
color: var(--md-typeset-color);
color: var(--md-typeset-color);
background: var(--md-footer-bg-color--dark);
}
.osano-cm-header,
Expand Down Expand Up @@ -203,4 +203,4 @@
.osano-cm-dialog--type_bar .osano-cm-dialog__buttons {
max-width: 20em;
}
}
}
2 changes: 1 addition & 1 deletion contrib/pg_tde/documentation/docs/css/postgresql.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
.superNav,
.md-nav__source {
background-color: var(--night500);
}
}
2 changes: 1 addition & 1 deletion contrib/pg_tde/documentation/docs/js/consent.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ if (consent && consent.custom) {
/* The user accepted the cookie */
} else {
/* The user rejected the cookie */
}
}
4 changes: 0 additions & 4 deletions contrib/pg_tde/documentation/docs/js/promptremover.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,3 @@ document.addEventListener("DOMContentLoaded", function(){
commandButtonElement.item(0).setAttribute("data-clipboard-text", trueCommand);
}
});




1 change: 0 additions & 1 deletion contrib/pg_tde/documentation/mkdocs-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ extra_css:
markdown_extensions:
pymdownx.tabbed: {}
admonition: {}

14 changes: 4 additions & 10 deletions contrib/pg_tde/documentation/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ site_author: Percona LLC
copyright: >
<a href="https://www.percona.com/about">Percona LLC</a> and/or its affiliates © 2025 — <a href="#__consent">Cookie Consent</a>


repo_name: percona/postgres
repo_url: https://github.com/percona/postgres
edit_uri: edit/TDE_REL_17_STABLE/contrib/pg_tde/documentation/docs
Expand Down Expand Up @@ -54,8 +53,6 @@ theme:
- navigation.tracking
- navigation.indexes



extra_css:
- https://unicons.iconscout.com/release/v3.0.3/css/line.css
- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css
Expand Down Expand Up @@ -100,7 +97,6 @@ markdown_extensions:
custom_icons:
- _resource/.icons


plugins:
- search:
separator: '[\s\-,:!=\[\]()"/]+|(?!\b)(?=[A-Z][a-z])|\.(?!\d)|&[lg]t;'
Expand Down Expand Up @@ -129,7 +125,7 @@ plugins:
debug_html: false
# two_columns_level: 3
custom_template_path: _resource/templates
enabled_if_env: ENABLE_PDF_EXPORT
enabled_if_env: ENABLE_PDF_EXPORT

extra:
version:
Expand All @@ -148,8 +144,8 @@ extra:
- icon: material/emoticon-sad-outline
name: This page could be improved
data: 0
note: >-
Thank you for your feedback! Help us improve by using our
note: >-
Thank you for your feedback! Help us improve by using our
<a href="https://docs.google.com/forms/d/1bkWACehjqlwA0AKf-qTJcXvYbOSYgze8iTPXjntqmNo/edit" target="_blank" rel="noopener">
feedback form</a>.

Expand All @@ -160,7 +156,7 @@ nav:
- Get started:
- "1. Install": "install.md"
- "Via apt": apt.md
- "Via yum": yum.md
- "Via yum": yum.md
- "2. Set up": "setup.md"
- "3. Configure WAL encryption (tech preview)": wal-encryption.md
- "4. Test TDE": "test.md"
Expand All @@ -185,5 +181,3 @@ nav:
- release-notes/mvp.md
- uninstall.md
- contribute.md


3 changes: 1 addition & 2 deletions contrib/pg_tde/documentation/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Markdown
mkdocs
mkdocs-versioning
Expand All @@ -16,4 +15,4 @@ mkdocs-meta-descriptions-plugin
mike
mkdocs-glightbox
Pillow > 10.1.0
mkdocs-open-in-new-tab
mkdocs-open-in-new-tab
4 changes: 1 addition & 3 deletions contrib/pg_tde/expected/change_access_method.out
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ CREATE TABLE country_table (
country_name varchar(32) unique not null,
continent varchar(32) not null
) USING tde_heap;

INSERT INTO country_table (country_name, continent)
VALUES ('Japan', 'Asia'),
('UK', 'Europe'),
Expand Down Expand Up @@ -49,7 +48,7 @@ SELECT pg_tde_is_encrypted('country_table_pkey');

-- Try changing the encrypted table to an unencrypted table
ALTER TABLE country_table SET ACCESS METHOD heap;
-- Insert some more data
-- Insert some more data
INSERT INTO country_table (country_name, continent)
VALUES ('France', 'Europe'),
('Germany', 'Europe'),
Expand Down Expand Up @@ -158,7 +157,6 @@ CREATE TABLE country_table3 (
continent text not null
) USING heap;
ERROR: pg_tde.enforce_encryption is ON, only the tde_heap access method is allowed.

ALTER TABLE country_table SET ACCESS METHOD heap;
ERROR: pg_tde.enforce_encryption is ON, only the tde_heap access method is allowed.
ALTER TABLE country_table2 SET ACCESS METHOD tde_heap;
Expand Down
5 changes: 2 additions & 3 deletions contrib/pg_tde/expected/default_principal_key.out
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SELECT pg_tde_add_global_key_provider_file('file-provider','/tmp/pg_tde_regressi
SELECT pg_tde_verify_default_key();
ERROR: principal key not configured for current database
-- Should fail: no default principal key for the server yet
SELECT key_provider_id, key_provider_name, key_name
SELECT key_provider_id, key_provider_name, key_name
FROM pg_tde_default_key_info();
ERROR: Principal key does not exists for the database
HINT: Use set_key interface to set the principal key
Expand All @@ -26,7 +26,7 @@ SELECT pg_tde_verify_default_key();

(1 row)

SELECT key_provider_id, key_provider_name, key_name
SELECT key_provider_id, key_provider_name, key_name
FROM pg_tde_default_key_info();
key_provider_id | key_provider_name | key_name
-----------------+-------------------+-------------
Expand All @@ -48,7 +48,6 @@ SELECT key_provider_id, key_provider_name, key_name
FROM pg_tde_key_info();
ERROR: Principal key does not exists for the database
HINT: Use set_key interface to set the principal key

-- Should succeed: "localizes" the default principal key for the database
CREATE TABLE test_enc(
id SERIAL,
Expand Down
1 change: 0 additions & 1 deletion contrib/pg_tde/pg_tde--1.0-rc.sql
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ BEGIN ATOMIC
'certPath' VALUE kmip_cert_path));
END;


CREATE FUNCTION pg_tde_list_all_database_key_providers
(OUT id INT,
OUT provider_name TEXT,
Expand Down
6 changes: 3 additions & 3 deletions contrib/pg_tde/sql/change_access_method.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CREATE TABLE country_table (
country_name varchar(32) unique not null,
continent varchar(32) not null
) USING tde_heap;

INSERT INTO country_table (country_name, continent)
VALUES ('Japan', 'Asia'),
('UK', 'Europe'),
Expand All @@ -22,7 +22,7 @@ SELECT pg_tde_is_encrypted('country_table_pkey');
-- Try changing the encrypted table to an unencrypted table
ALTER TABLE country_table SET ACCESS METHOD heap;

-- Insert some more data
-- Insert some more data
INSERT INTO country_table (country_name, continent)
VALUES ('France', 'Europe'),
('Germany', 'Europe'),
Expand Down Expand Up @@ -78,7 +78,7 @@ CREATE TABLE country_table3 (
country_name text unique not null,
continent text not null
) USING heap;

ALTER TABLE country_table SET ACCESS METHOD heap;
ALTER TABLE country_table2 SET ACCESS METHOD tde_heap;

Expand Down
6 changes: 3 additions & 3 deletions contrib/pg_tde/sql/default_principal_key.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ SELECT pg_tde_add_global_key_provider_file('file-provider','/tmp/pg_tde_regressi
SELECT pg_tde_verify_default_key();

-- Should fail: no default principal key for the server yet
SELECT key_provider_id, key_provider_name, key_name
SELECT key_provider_id, key_provider_name, key_name
FROM pg_tde_default_key_info();

SELECT pg_tde_set_default_key_using_global_key_provider('default-key', 'file-provider', false);
SELECT pg_tde_verify_default_key();

SELECT key_provider_id, key_provider_name, key_name
SELECT key_provider_id, key_provider_name, key_name
FROM pg_tde_default_key_info();

-- fails
Expand All @@ -23,7 +23,7 @@ SELECT id, provider_name FROM pg_tde_list_all_global_key_providers();
-- Should fail: no principal key for the database yet
SELECT key_provider_id, key_provider_name, key_name
FROM pg_tde_key_info();

-- Should succeed: "localizes" the default principal key for the database
CREATE TABLE test_enc(
id SERIAL,
Expand Down
5 changes: 0 additions & 5 deletions contrib/pg_tde/src/access/pg_tde_tdemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@

#define PG_TDE_FILEMAGIC 0x02454454 /* version ID value = TDE 02 */


#define MAP_ENTRY_SIZE sizeof(TDEMapEntry)
#define TDE_FILE_HEADER_SIZE sizeof(TDEFileHeader)

Expand Down Expand Up @@ -100,7 +99,6 @@ RelKeyCache tde_rel_key_cache = {
.cap = 0,
};


/*
* TODO: WAL should have its own RelKeyCache
*/
Expand Down Expand Up @@ -911,7 +909,6 @@ tde_decrypt_rel_key(TDEPrincipalKey *principal_key, TDEMapEntry *map_entry)
ereport(ERROR,
errmsg("Failed to decrypt key, incorrect principal key or corrupted key file"));


return rel_key_data;
}

Expand Down Expand Up @@ -963,7 +960,6 @@ pg_tde_open_file_basic(const char *tde_filename, int fileFlags, bool ignore_miss
return fd;
}


/*
* Read TDE file header from a TDE file and fill in the fheader data structure.
*/
Expand All @@ -989,7 +985,6 @@ pg_tde_file_header_read(const char *tde_filename, int fd, TDEFileHeader *fheader
}
}


/*
* Returns true if a map entry if found or false if we have reached the end of
* the file.
Expand Down
Loading
0