Since we've reached the end of the January commitfest, and it's pretty clear that this patch isn't going to get committed in anything like its current form, I'm going to close the CF entry as returned with feedback. If you come up with a follow-on patch, please create a new CF entry.
regards, tom lane