Bonjour Daniel,
Here's a rebased version with a couple regression tests added per the discussions during the previous CF. Now at https://commitfest.postgresql.org/20/1861/
Patch applies cleanly, compiles, make check ok, doc gen ok. Fine with me. I switched the patch to "Ready". -- Fabien.