Brendan Jurd <direvus(at)gmail(dot)com> writes:
> I've also done an initial review of the patch. Everything looks sane
> and the patch works as advertised. I made a couple of minor tweaks
> for code-style and comment consistency, and my version 3 is attached.
> I'm marking this patch Ready for Committer.
Applied with minor revisions --- mostly, it leaked memory in the case
of no comments, and the query wasn't very schema-safe.
regards, tom lane