Re: [HACKERS] Wrong error message in REINDEX command

2015-03-08 Thread Tom Lane
Sawada Masahiko 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 t

[HACKERS] Wrong error message in REINDEX command

2015-03-07 Thread Sawada Masahiko
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 DATABA