Fix error stats.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 14 Aug 2020 09:00:55 +0000 (18:00 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 14 Aug 2020 09:00:55 +0000 (18:00 +0900)
commitd23f0af72058dc844940006db149ac9460414ffd
tree8e9497166385e304db3a6f2d502915d8fdd6509e
parentf04ef82be528c5e5e706f9e2e7231db369427eee
Fix error stats.

Error stats was only collected from Master node. It is possible that
error occurred in multiple backends (for example, in native
replication mode, INSERT is accepted by the parser but target table
does not exist).  Change the place where to collect error stats from
SimpleForwardToFrontend() to read_kind_from_backend().
src/protocol/pool_process_query.c