I've pushed the first draft for $SUBJECT at
https://git.postgresql.org/pg/commitdiff/2f38ec6a157b60291ece1deb072bfff84f317334
Please send comments/corrections by Sunday.
regards, tom lane