Re: Key management with tests
Bruce Momjian <bruce@momjian.us>
From: Bruce Momjian <bruce@momjian.us>
To: Neil Chen <carpenter.nail.cz@gmail.com>
Cc: Stephen Frost <sfrost@snowman.net>, Masahiko Sawada <sawada.mshk@gmail.com>, Tom Kincaid <tomjohnkincaid@gmail.com>, Robert Haas <robertmhaas@gmail.com>, Alvaro Herrera <alvherre@alvh.no-ip.org>, Andres Freund <andres@anarazel.de>, Amit Kapila <amit.kapila16@gmail.com>, Thomas Munro <thomas.munro@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>, Masahiko Sawada <masahiko.sawada@2ndquadrant.com>
Date: 2021-04-06T18:42:17Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Rethink method for assigning OIDs to the template0 and postgres DBs.
- 2cb1272445d2 15.0 landed
-
pg_upgrade: Preserve database OIDs.
- aa01051418f1 15.0 landed
-
pg_upgrade: Preserve relfilenodes and tablespace OIDs.
- 9a974cbcba00 15.0 landed
-
Fix for new Boolean node
- cf925936ecc0 15.0 cited
-
Improve error handling of HMAC computations
- 5513dc6a304d 15.0 cited
-
Add macro RelationIsPermanent() to report relation permanence
- 95d77149c535 14.0 landed
-
Enhance nbtree index tuple deletion.
- d168b666823b 14.0 cited
Attachments
- cfe-01-doc_over_master.diff (text/x-diff)
On Tue, Apr 6, 2021 at 04:56:36PM +0800, Neil Chen wrote: > Hi Bruce, > > I went through these patches and executed the test script you added for the KMS > section, which looks all good. Thank you for checking it. The src/test/crypto/t/003_clusterkey.pl test is one of the craziest tests I have ever written, so I am glad it worked for you. > This is a point that looks like a bug - in patch 10, you changed the location > and use of *RelFileNodeSkippingWAL()*, but the modified code logic seems > different from the original when encryption is not enabled. After applying this > patch, it still will execute the set LSN code flow when RelFileNodeSkippingWAL > returns true, and encryption not enabled. You are very correct. That 'return' inside the 'if' statement gave me trouble, and MarkBufferDirtyHint() was the hardest function I had to deal with. Attached is an updated version of patches with a rebase; the GitHub links listed on the wiki are updated too. Thanks for your help. -- Bruce Momjian <bruce@momjian.us> https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.