Thread

  1. error message is not proper for analyze on standby.

    Tomonari Katsumata <t.katsumata1122@gmail.com> — 2012-10-06T03:16:38Z

    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