If a backend killed by pg_terminate_backend(), the backend returns
57P01 which is identical to the one when it's killed by postmaster.
Problem is, pgpool-II needs to trigger failover if postmaster goes
down because apparently pgpool-II cannot use the PostgreSQL server
On the otherhand, pg_terminate_backend() just terminates a backend. So
triggering failover is overkill.
Maybe we could make PostgreSQL a little bit smarter so that it returns
a different code than 57P01 when killed by pg_terminate_backend().
SRA OSS, Inc. Japan
pgsql-hackers by date
|Next:||From: Robert Haas||Date: 2010-05-13 00:48:41|
|Subject: Stefan's bug (was: max_standby_delay considered harmful)|
|Previous:||From: Brendan Hill||Date: 2010-05-13 00:09:03|
|Subject: Re: Query execution plan from 8.3 -> 8.4|