Hi Hackers, > It's not happy, but I'm not sure about a good solution. I made a timer > reschedule > if connection lost had detected. But if queries in the transaction are quite > short, > catching SIGINT may be fail.
Attached uses another way: sets pending flags again if DoingCommandRead is true. If a remote server goes down while it is in idle_in_transaction, next query will fail because of ereport(ERROR). How do you think? Best Regards, Hayato Kuroda FUJITSU LIMITED
v14_0001_expose_cancel_message.patch
Description: v14_0001_expose_cancel_message.patch
v14_0002_add_health_check.patch
Description: v14_0002_add_health_check.patch
v14_0003_add_doc.patch
Description: v14_0003_add_doc.patch
<<attachment: v14_0004_add_test.zip>>