From: pgsql-hackers-owner@postgresql.org
> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Jim Nasby
> AFAIK there's no way to get a list of hooks today, short of something like
> `git grep hook`. I think a simple list of what hooks we have, when they
> fire and where to find them in code would be sufficient.
How about putting a descriptive comment at the location where each hook variable is defined, using some convention
(e.g.like Javadoc-style)? A separate document such as README and wiki can fail to be updated. OTOH, if someone wants
toadd a new hook, we can expect him to add appropriate comment by following existing hooks. Using a fixed tag, e.g.
"<Hook>",would facilitate finding all hooks.
Regards
Takayuki Tsunakawa