Sawada Masahiko <sawada(dot)mshk(at)gmail(dot)com> writes:
> I got wrong error message when I did REINDEX SYSTEM command in
> transaction as follows.
> It should say "ERROR: REINDEX SYSTEM cannot run inside a transaction block"
> Attached patch fixes it.
Hm, yeah, looks like ReindexObject() has a similar disease internally
(not to mention being very inappropriately named itself...)
regards, tom lane