Sean Chittenden <sean(at)chittenden(dot)org> writes:
> I've added the pg_ping util to my todo list, but I'm swamped atm. Are
> there any request bits that could be used for interactivity with the
> server beyond the server being able to accept a connection?
If you wanted to send something the postmaster would recognize as a PING
instead of a connection request, just select a new "protocol version"
value. Take a look at the way Cancel requests are processed now ---
it'd be quite similar.
regards, tom lane