Wrong error message in REINDEX command - Mailing list pgsql-hackers

From Sawada Masahiko
Subject Wrong error message in REINDEX command
Date
Msg-id CAD21AoDunNHhBLhR=61VsSo1UTKrtWTBBAOd2+KK9Yk-4CPYhw@mail.gmail.com
Whole thread Raw
Responses Re: Wrong error message in REINDEX command  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

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.

[postgres][5432](1)=# begin;
BEGIN
[postgres][5432](1)=# reindex system postgres;
ERROR:  REINDEX DATABASE cannot run inside a transaction block
STATEMENT:  reindex system postgres;

Regards,

-------
Sawada Masahiko

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: File based Incremental backup v8
Next
From: Fabrízio de Royes Mello
Date:
Subject: Re: Strange debug message of walreciver?