<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Command-line tools on Mimus</title><link>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/</link><description>Recent content in Command-line tools on Mimus</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/index.xml" rel="self" type="application/rss+xml"/><item><title>pg_tde_upgrade</title><link>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/pg-tde-upgrade/</link><guid>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/pg-tde-upgrade/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;This physical upgrade procedure applies to Percona PostgreSQL. For a major upgrade of a TDE-marked Mimus cluster, use logical dump and restore into a new cluster. &lt;a href="https://mimus.pgsty.com/docs/tde/recovery/#upgrade"&gt;Mimus procedure&lt;/a&gt;&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;&lt;code&gt;pg_tde_upgrade&lt;/code&gt; is the supported method for performing PostgreSQL major version upgrades on clusters that use &lt;code&gt;pg_tde&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;Use this tool instead of &lt;code&gt;pg_upgrade&lt;/code&gt; whenever the cluster uses &lt;code&gt;pg_tde&lt;/code&gt;, including clusters with encrypted tables or encrypted WAL.&lt;/p&gt;&#10;&lt;p&gt;&lt;code&gt;pg_tde_upgrade&lt;/code&gt; wraps &lt;a href="https://www.postgresql.org/docs/current/pgupgrade.html"&gt;&lt;code&gt;pg_upgrade&lt;/code&gt; &lt;/a&gt; to simplify upgrading clusters with encrypted relations or WAL. It can also be run safely on clusters without &lt;code&gt;pg_tde&lt;/code&gt; enabled.&lt;/p&gt;</description></item><item><title>pg_tde_waldump</title><link>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/pg-tde-waldump/</link><guid>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/pg-tde-waldump/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see &lt;a href="https://mimus.pgsty.com/docs/tde/"&gt;PG TDE on Mimus&lt;/a&gt;.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;&lt;a href="https://www.postgresql.org/docs/current/pgwaldump.html"&gt;&lt;code&gt;pg_tde_waldump&lt;/code&gt; &lt;/a&gt; displays a human-readable rendering of the Write-Ahead Log (WAL) for a PostgreSQL database cluster.&lt;/p&gt;&#10;&lt;p&gt;To read encrypted WAL records, &lt;code&gt;pg_tde_waldump&lt;/code&gt; provides the following additional option:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;-k, --keyring-path=PATH&lt;/code&gt; is the path to the directory containing the WAL keyring configuration files. This is typically the &lt;code&gt;pg_tde/&lt;/code&gt; directory inside the PostgreSQL data directory. The following files are included:&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;wal_keys&lt;/code&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;1664_providers&lt;/code&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;&lt;code&gt;pg_tde_waldump&lt;/code&gt; cannot read encrypted WAL unless &lt;code&gt;--keyring-path&lt;/code&gt; is specified.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>pg_tde_checksums</title><link>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/pg-tde-checksums/</link><guid>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/pg-tde-checksums/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see &lt;a href="https://mimus.pgsty.com/docs/tde/"&gt;PG TDE on Mimus&lt;/a&gt;.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;&lt;a href="https://www.postgresql.org/docs/current/app-pgchecksums.html"&gt;&lt;code&gt;pg_tde_checksums&lt;/code&gt; &lt;/a&gt; is a PostgreSQL command-line utility used to enable, disable, or verify data checksums on a PostgreSQL data directory. The tool is modified to add support for working with encrypted tables.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/pgsty/doc.pg.center/blob/4410c32dc9186a22859008303f474b72a779f583/content/percona/command-line-tools/pg-tde-checksums.md"&gt;PG.CENTER edition&lt;/a&gt; · &lt;a href="https://github.com/percona/pg_tde/blob/5dd7a9e4e3599d88546f5de67ff0f4ef3fe51a9a/documentation/docs/command-line-tools/pg-tde-checksums.md"&gt;Upstream source&lt;/a&gt;&lt;/p&gt;</description></item><item><title>pg_tde_change_key_provider</title><link>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/pg-tde-change-key-provider/</link><guid>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/pg-tde-change-key-provider/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see &lt;a href="https://mimus.pgsty.com/docs/tde/"&gt;PG TDE on Mimus&lt;/a&gt;.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;A tool for modifying the configuration of a key provider, possibly also changing its type.&lt;/p&gt;&#10;&lt;p&gt;This tool edits the configuration files directly, ignoring permissions or running &lt;code&gt;postgres&lt;/code&gt; processes.&lt;/p&gt;&#10;&lt;p&gt;Its only intended use is to fix servers that can&amp;rsquo;t start up because of inaccessible key providers.&lt;/p&gt;&#10;&lt;p&gt;For example, you restore from an old backup and the address of the key provider changed in the meantime. You can use this tool to correct the configuration, allowing the server to start up.&lt;/p&gt;</description></item><item><title>pg_tde_restore_encrypt</title><link>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/pg-tde-restore-encrypt/</link><guid>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/pg-tde-restore-encrypt/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see &lt;a href="https://mimus.pgsty.com/docs/tde/"&gt;PG TDE on Mimus&lt;/a&gt;.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Editorial correction&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;The placeholder descriptions now match the tool’s built-in help. See &lt;a href="https://mimus.pgsty.com/docs/tde/upstream/site/errata/"&gt;site errata&lt;/a&gt;.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;The &lt;code&gt;pg_tde_restore_encrypt&lt;/code&gt; tool wraps a normal restore command from the WAL archive and writes them to disk in a format compatible with &lt;code&gt;pg_tde&lt;/code&gt;.&lt;/p&gt;&#10;&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;This command is often use together with &lt;a href="https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/pg-tde-archive-decrypt/"&gt;pg_tde_archive_decrypt&lt;/a&gt;.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>pg_tde_archive_decrypt</title><link>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/pg-tde-archive-decrypt/</link><guid>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/pg-tde-archive-decrypt/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see &lt;a href="https://mimus.pgsty.com/docs/tde/"&gt;PG TDE on Mimus&lt;/a&gt;.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;The &lt;code&gt;pg_tde_archive_decrypt&lt;/code&gt; tool wraps an archive command and decrypts WAL files before archiving. It allows external tools to access unencrypted WAL data, which is required because WAL encryption keys in the two-key hierarchy are host-specific and may not be available on the replay host.&lt;/p&gt;&#10;&lt;div class="td-callout td-callout--tip" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-lightbulb" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Tip&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;For more information on the encryption architecture and key hierarchy, see &lt;a href="https://mimus.pgsty.com/docs/tde/upstream/architecture/overview/"&gt;Architecture&lt;/a&gt;.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>Overview of pg_tde CLI tools</title><link>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/cli-tools/</link><guid>https://mimus.pgsty.com/docs/tde/upstream/command-line-tools/cli-tools/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see &lt;a href="https://mimus.pgsty.com/docs/tde/"&gt;PG TDE on Mimus&lt;/a&gt;.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;The &lt;code&gt;pg_tde&lt;/code&gt; extension provides a set of command-line utilities designed specifically for operating on encrypted data and clusters. These utilities exist in parallel with the standard PostgreSQL utilities but you &lt;strong&gt;must&lt;/strong&gt; use them when working with data encrypted by &lt;code&gt;pg_tde&lt;/code&gt;.&lt;/p&gt;&#10;&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;The standard PostgreSQL tools cannot operate on &lt;code&gt;pg_tde&lt;/code&gt;-encrypted WAL or tables.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;</description></item></channel></rss>