You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Add log_connections option 'setup_durations' which logs durations ofseveral key parts of connection establishment and backend setup.For an incoming connection, starting from when the postmaster gets asocket from accept() and ending when the forked child backend is firstready for query, there are multiple steps that could each take longerthan expected due to external factors. This logging provides visibilityinto authentication and fork duration as well as the end-to-endconnection establishment and backend initialization time.To make this portable, the timings captured in the postmaster (socketcreation time, fork initiation time) are passed through theBackendStartupData.Author: Melanie Plageman <melanieplageman@gmail.com>Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com>Reviewed-by: Daniel Gustafsson <daniel@yesql.se>Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com>Reviewed-by: Jelte Fennema-Nio <postgres@jeltef.nl>Reviewed-by: Guillaume Lelarge <guillaume.lelarge@dalibo.com>Discussion:https://postgr.es/m/flat/CAAKRu_b_smAHK0ZjrnL5GRxnAVWujEXQWpLXYzGbmpcZd3nLYw%40mail.gmail.com