Thread: error message is not proper for analyze on standby.

error message is not proper for analyze on standby.

From
Tomonari Katsumata
Date:
Hi,

I work with streaming replication and hot standby.
and I noticed that error message is not proper when I issue
ANALYZE command to standby.

[before]
========================================================
-bash-3.2$ psql -c "analyze"
ERROR:  cannot execute VACUUM during recovery
STATEMENT:  analyze
ERROR:  cannot execute VACUUM during recovery
========================================================

ANALYZE command is not VACUUM command.
I attached a patch revised the message.

[after]
========================================================
-bash-3.2$ psql -c "analyze"
ERROR:  cannot execute ANALYZE during recovery
STATEMENT:  analyze
ERROR:  cannot execute ANALYZE during recovery
========================================================

this is not big problem, but error message should be
report actual thing.
please check it.

regards,

-------------
Tomonari Katsumata

Attachment