How to know killed by pg_terminate_backend - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject How to know killed by pg_terminate_backend
Date
Msg-id 20100513.092452.96760179.t-ishii@sraoss.co.jp
Whole thread Raw
Responses Re: How to know killed by pg_terminate_backend
List pgsql-hackers
Hi,

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
anymore.

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().

Comments?
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: List traffic
Next
From: Robert Haas
Date:
Subject: Stefan's bug (was: max_standby_delay considered harmful)