Dmitry Samonenko <shreddingwork@xxxxxxxxx> writes: > Yeah, that will work. Looks simple to implement in the client. Question is: > why don't you think it should be a part of the libpq's API? It's a must > have feature in high availability environments where only several minutes > of Out of Service per year are tolerable. That argument seems nonsensical from here. If you need HA then you should be using network service monitoring tools, not relying on some random libpq client to decide that its connection has been lost. regards, tom lane