more suitable messages for analyze on hot standby.

Поиск
Список
Период
Сортировка
От Tomonari Katsumata
Тема more suitable messages for analyze on hot standby.
Дата
Msg-id CAC55fYeaEE+3EtcYXj+WOmVOrheHHQZyGgA_AJ24v15P=0An+A@mail.gmail.com
обсуждение исходный текст
Ответы Re: more suitable messages for analyze on hot standby.
Список pgsql-hackers
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.

========================================================
-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 revising the message.

========================================================
-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 report
actual thing. please check it.

regards,

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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Bugs in CREATE/DROP INDEX CONCURRENTLY
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Rethinking placement of latch self-pipe initialization