<div dir="ltr">Greetings,<br><div><br></div><div>Question: </div><div>1) Is there a way to identify the database connections originating from pgpool, within PostgreSQL? ie pg_stat_activity? </div><div><br></div><div>Use case: </div><div>we currently have a few hundreds micro-services, among which some are connecting to pgpool, and some are still connecting directly to the database. The ultimate goal is to have all applications connecting to pgpool, but first, we have to fix an issue with idle connections. For this reason, I need a way to be able to identify the pgpool vs non-pgpool connections , from within PostgreSQL. </div><div><br></div><div>If there's no other way than using "show pool_pools",  then I have a couple more questions / suggestions:</div><div><br></div><div>2) Is there a way to "query"  the "show pool_pools" results? In other words, is it possible to join the "show pool_pools" results with pg_stat_activity for example? </div><div><br></div><div>3) Assuming none of the above is currently possible, it would be a great feature if we could define a prefix that could be appended to the "appication_name" value coming from the client perhaps. </div><div>Example: </div><div>client connection:         psql -d 'dbname=postgres application_name=mypsql'</div><div>pgpool param (new):   application_name_prefix  = 'pgp-'</div><div>pg_stat_activity:           application_name shows "pgp-mypsql'</div><div><br></div><div>Regards,</div><div>Steeve</div></div>